From 9316686c4c29f92a9723d47f5137e172dea04441 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 20 Jul 2009 13:28:06 -0700 Subject: ftpdir-cleanup: Corrections for 'any' packages Signed-off-by: Aaron Griffin --- misc-scripts/ftpdir-cleanup | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'misc-scripts') diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup index fd771e7..9bac030 100755 --- a/misc-scripts/ftpdir-cleanup +++ b/misc-scripts/ftpdir-cleanup @@ -32,6 +32,7 @@ getpkgname() { tmp=${1##*/} tmp=${tmp%$PKGEXT} tmp=${tmp%-$arch} + tmp=${tmp%-any} echo ${tmp%-*-*} } @@ -40,7 +41,8 @@ getpkgname_ver() { tmp=${1##*/} tmp=${tmp%$PKGEXT} - echo ${tmp%-$arch} + tmp=${tmp%-$arch} + echo ${tmp%-any} } MISSINGFILES="" @@ -56,7 +58,7 @@ for pkg in *; do filename=$(grep -A1 '^%FILENAME%$' "${pkg}/desc" | tail -n1) [ -z "${filename}" ] && filename="${pkg}${PKGEXT}" - if [ ! -f "${ftppath}/${filename}" ]; then + if [ ! -e "${ftppath}/${filename}" ]; then MISSINGFILES="${MISSINGFILES} ${filename}" else pkgname="$(getpkgname ${filename})" -- cgit v1.2.3-2-g168b