From c736d21ae97cbd9e4f6b036029426f77f14fd063 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 18 Dec 2010 01:50:17 +0100 Subject: Touch old packages after moving them to the cleanup dirs This updates the mtime of those files and will help us to remove them later. --- cron-jobs/sourceballs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cron-jobs/sourceballs') 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 -- cgit v1.2.3-24-g4f1b