]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
changed DONWLOADED_PATCHES behaviour
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 23 Jan 2007 02:23:59 +0000 (02:23 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 23 Jan 2007 02:23:59 +0000 (02:23 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@111 04377dda-e619-0410-9926-eae83683ac58

src/simplaret

index fd5a8b3d72b9e4708e049b2ac952ac59ff391416..2dcfede0b7f79c1f31b2fa293fcbb32571f42fd4 100755 (executable)
@@ -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