From 8647de4f52e05eadc0a4832813e9a57c20a487dd Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 18 Aug 2010 11:58:02 +0200 Subject: Fix cleanup of old packages * This should fix the cleanup of packages that were not within the pacakge pool before being updated. * a test case for this was added --- misc-scripts/ftpdir-cleanup-repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc-scripts') diff --git a/misc-scripts/ftpdir-cleanup-repo b/misc-scripts/ftpdir-cleanup-repo index 20f297b..bfc971e 100755 --- a/misc-scripts/ftpdir-cleanup-repo +++ b/misc-scripts/ftpdir-cleanup-repo @@ -63,7 +63,7 @@ for arch in ${ARCHES[@]}; do cd "$ftppath" for pkg in $CLEANUP_TMPDIR/*; do - [ -f "${pkg}" ] || continue + [ ! -d "${pkg}" ] && continue filename=$(grep -A1 '^%FILENAME%$' "${pkg}/desc" | tail -n1) if [ ! -e "${filename}" ]; then -- cgit v1.2.3-24-g4f1b