From e23c94675e3e6d625796317d084ee091b6a9e60f Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 13 Mar 2011 13:24:20 +1000 Subject: Be less generic with package extension Arch only uses .gz and .xz packages so look for .pkg.tar.?z. This prevents matching potential detached signature files. Signed-off-by: Allan McRae Signed-off-by: Pierre Schmitz --- commitpkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commitpkg b/commitpkg index 37faba7..041a794 100755 --- a/commitpkg +++ b/commitpkg @@ -122,8 +122,8 @@ echo 'done' for _arch in ${arch[@]}; do for _pkgname in ${pkgname[@]}; do fullver=$(get_full_version ${epoch:-0} $pkgver $pkgrel) - pkgfile=$(getpkgfile "$_pkgname-$fullver-${_arch}".pkg.tar.* 2>/dev/null) - pkgdestfile=$(getpkgfile "$PKGDEST/$_pkgname-$fullver-${_arch}".pkg.tar.* 2>/dev/null) + pkgfile=$(getpkgfile "$_pkgname-$fullver-${_arch}".pkg.tar.?z 2>/dev/null) + pkgdestfile=$(getpkgfile "$PKGDEST/$_pkgname-$fullver-${_arch}".pkg.tar.?z 2>/dev/null) if [ ! -f "$pkgfile" -a -f "$pkgdestfile" ]; then pkgfile="$pkgdestfile" -- cgit v1.2.3-24-g4f1b