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
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
# 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