summaryrefslogtreecommitdiffstats
path: root/misc-scripts
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-18 11:58:02 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-18 11:58:02 +0200
commit8647de4f52e05eadc0a4832813e9a57c20a487dd (patch)
treec17dede608b49756ef7a8fd4396a20a6baac06d0 /misc-scripts
parent17c9dab4b420ca55fd4fb3f277805af148159a4d (diff)
downloaddbscripts-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')
-rwxr-xr-xmisc-scripts/ftpdir-cleanup-repo2
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