From c912283df84f0583496c27a0935d5946ba4dd7cf Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 20 Jul 2009 19:12:31 -0400 Subject: ftpdir-cleanup: Fix ARCHINDEP parsing Failed hard on empty 'any' directories Signed-off-by: Aaron Griffin --- misc-scripts/ftpdir-cleanup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup index 2573cf4..ca411cf 100755 --- a/misc-scripts/ftpdir-cleanup +++ b/misc-scripts/ftpdir-cleanup @@ -84,7 +84,8 @@ done if [ -d "$ftppath_base/any" ]; then cd "$ftppath_base/any" for pkg in *$PKGEXT; do - if [ ! -h $ftppath_base/i686/$pkg -a ! -h $ftppath_base/x86_64/$pkg ]; then + [ -f "$pkg" ] || continue # in case we get a file named "*.pkg.tar.gz" + if [ ! -h "$ftppath_base/i686/$pkg" -a ! -h "$ftppath_base/x86_64/$pkg" ]; then ARCHINDEPFILES="$ARCHINDEPFILES $pkg" fi done -- cgit v1.2.3-24-g4f1b