diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2006-12-10 22:33:39 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2006-12-10 22:33:39 +0000 |
commit | 7efce73e562fe07ad3b3dd2af4bda912babd1920 (patch) | |
tree | 6d3961c69215cd3a31beedc90b6fa59dce4b8563 /src | |
parent | 0e09077f17e0f027304892665984847b3f497590 (diff) | |
download | simplepkg-7efce73e562fe07ad3b3dd2af4bda912babd1920.tar.gz simplepkg-7efce73e562fe07ad3b3dd2af4bda912babd1920.tar.bz2 |
simplaret: simplaret_search_and_download_patch fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@66 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src')
-rwxr-xr-x | src/simplaret | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/simplaret b/src/simplaret index d6cded1..018e2f4 100755 --- a/src/simplaret +++ b/src/simplaret @@ -426,7 +426,7 @@ function simplaret_get { else echo package $candidate stored at $storage/$repository_name simplaret_checksum $storage/$repository_name/CHECKSUMS.md5 $storage/$repository_name/$candidate - exit 0 + return 0 fi fi @@ -436,6 +436,8 @@ function simplaret_get { function simplaret_search_and_download_patch { + candidate="`basename $(echo $candidate | cut -d , -f 1)`" + # check if the patch was already downloaded if echo $DOWNLOADED_PATCHES | grep -q " $candidate "; then return @@ -523,8 +525,8 @@ function simplaret_get_patches { # then get the needed patches for each installed jail if [ -s "$JAIL_LIST" ]; then for jailpath in `cat $JAIL_LIST`; do - if [ -d "/$jailpath/var/log/packages" ]; then - simplaret_get_jail_patches /$jailpath + if [ -d "$jailpath/var/log/packages" ]; then + simplaret_get_jail_patches $jailpath fi done fi |