sugested="`package_name $sugested`"
# check if the patch was already downloaded
- if echo "$DOWNLOADED_PATCHES" | grep -q " $sugested "; then
+ if echo "$DOWNLOADED_PATCHES" | grep -q " $ARCH:$VERSION:$sugested "; then
return
fi
if [ "$get" == "yes" ]; then
simplaret_get $sugested
if [ "$?" == "0" ]; then
- DOWNLOADED_PATCHES="$DOWNLOADED_PATCHES $sugested " # the ending space is important
+ DOWNLOADED_PATCHES="$DOWNLOADED_PATCHES $ARCH:$VERSION:$sugested " # the ending space is important
fi
fi
return
fi
- # erase the downloaded patches array
- DOWNLOADED_PATCHES=""
-
echo fetching patches for arch $ARCH and version $VERSION for jail $root
# list all available patches from PATCHES and ROOT repositories