diff options
-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 |