diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-18 11:58:02 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-18 11:58:02 +0200 |
commit | 8647de4f52e05eadc0a4832813e9a57c20a487dd (patch) | |
tree | c17dede608b49756ef7a8fd4396a20a6baac06d0 /misc-scripts/ftpdir-cleanup-repo | |
parent | 17c9dab4b420ca55fd4fb3f277805af148159a4d (diff) | |
download | dbscripts-8647de4f52e05eadc0a4832813e9a57c20a487dd.tar.gz dbscripts-8647de4f52e05eadc0a4832813e9a57c20a487dd.tar.xz |
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
Diffstat (limited to 'misc-scripts/ftpdir-cleanup-repo')
-rwxr-xr-x | misc-scripts/ftpdir-cleanup-repo | 2 |
1 files changed, 1 insertions, 1 deletions
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 |