diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-23 02:23:59 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-23 02:23:59 +0000 |
commit | 7917321579025a2526f1a4021993b21e4ed6c80f (patch) | |
tree | b7a5395f57379a4bec514643479eb7e1b7c90eb2 /src | |
parent | 0a8c741d713762d38a8ef57d8aef928b5e7d0d0a (diff) | |
download | simplepkg-7917321579025a2526f1a4021993b21e4ed6c80f.tar.gz simplepkg-7917321579025a2526f1a4021993b21e4ed6c80f.tar.bz2 |
changed DONWLOADED_PATCHES behaviour
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@111 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-x | src/simplaret | 7 |
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 |