diff options
author | Allan McRae <allan@archlinux.org> | 2011-03-13 13:24:20 +1000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-03-26 13:03:32 +0100 |
commit | e23c94675e3e6d625796317d084ee091b6a9e60f (patch) | |
tree | bfc2431d7f74a340a760ffa7cddbab7f110448f5 | |
parent | 96a11523e51d6991a86165437c1c0c5d632142aa (diff) | |
download | devtools-e23c94675e3e6d625796317d084ee091b6a9e60f.tar.xz |
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 <allan@archlinux.org>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-x | commitpkg | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |