Signed-off-by: Allan McRae <allan@archlinux.org> --- cron-jobs/ftpdir-cleanup | 4 ++++ misc-scripts/ftpdir-cleanup-repo | 5 +++++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup index 3456e9c..175e56c 100755 --- a/cron-jobs/ftpdir-cleanup +++ b/cron-jobs/ftpdir-cleanup @@ -24,6 +24,10 @@ for pkg in *$PKGEXT; do LINKS="$(/usr/bin/find $repopaths -type l -name "$pkg" 2>/dev/null)" if [ -z "$LINKS" ]; then to_cleanup="$to_cleanup $poolpath/$pkg" + + if [ -f "$pkg.sig" ]; then + to_cleanup="$to_cleanup $poolpath/$pkg.sig" + fi fi done popd >/dev/null diff --git a/misc-scripts/ftpdir-cleanup-repo b/misc-scripts/ftpdir-cleanup-repo index 20f297b..ac7c026 100755 --- a/misc-scripts/ftpdir-cleanup-repo +++ b/misc-scripts/ftpdir-cleanup-repo @@ -20,6 +20,11 @@ clean_pkgs () { else mv "$pkg" "$CLEANUP_DESTDIR" fi + if [ -h "$pkg.sig" ]; then + rm -f "$pkg.sig" + else + mv "$pkg.sig" "$CLEANUP_DESTDIR" + fi done fi } -- 1.7.4.1