aboutsummaryrefslogtreecommitdiff
path: root/src/simplaret
diff options
context:
space:
mode:
Diffstat (limited to 'src/simplaret')
-rwxr-xr-xsrc/simplaret7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/simplaret b/src/simplaret
index fd5a8b3..2dcfede 100755
--- a/src/simplaret
+++ b/src/simplaret
@@ -485,7 +485,7 @@ function simplaret_search_and_download_patch {
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
@@ -536,7 +536,7 @@ function simplaret_search_and_download_patch {
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
@@ -574,9 +574,6 @@ function simplaret_get_jail_patches {
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