summaryrefslogtreecommitdiff
path: root/cron-jobs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-12-18 01:50:17 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-12-18 01:50:17 +0100
commitc736d21ae97cbd9e4f6b036029426f77f14fd063 (patch)
treeb50a16ea9a71d7355570925d6dc2dba592f06d67 /cron-jobs
parent76256c33bb6fa06b79bdab6615f2da587cd80f31 (diff)
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.
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/ftpdir-cleanup1
-rwxr-xr-xcron-jobs/sourceballs5
2 files changed, 5 insertions, 1 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index 1df4edc..fe49706 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -13,6 +13,7 @@ clean_pkg() {
rm -f "$pkg"
else
mv -f "$pkg" "$CLEANUP_DESTDIR"
+ touch "${CLEANUP_DESTDIR}/$(basename ${pkg})"
fi
done
fi
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