summaryrefslogtreecommitdiffstats
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-xcron-jobs/sourceballs5
1 files changed, 4 insertions, 1 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 6553327..85221a7 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -125,7 +125,10 @@ if [ ${#old_pkgs[@]} -ge 1 ]; then
${SOURCE_CLEANUP_DRYRUN} && warning 'dry run mode is active'
for old_pkg in ${old_pkgs[@]}; do
msg2 "${old_pkg}"
- ${SOURCE_CLEANUP_DRYRUN} || mv "$FTP_BASE/${SRCPOOL}/${old_pkg}" "${SOURCE_CLEANUP_DESTDIR}"
+ if ! ${SOURCE_CLEANUP_DRYRUN}; then
+ mv "$FTP_BASE/${SRCPOOL}/${old_pkg}" "${SOURCE_CLEANUP_DESTDIR}"
+ touch "${SOURCE_CLEANUP_DESTDIR}/${old_pkg}"
+ fi
done
fi