From 7917321579025a2526f1a4021993b21e4ed6c80f Mon Sep 17 00:00:00 2001 From: rhatto Date: Tue, 23 Jan 2007 02:23:59 +0000 Subject: changed DONWLOADED_PATCHES behaviour git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@111 04377dda-e619-0410-9926-eae83683ac58 --- src/simplaret | 7 ++----- 1 file 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 -- cgit v1.2.3