summaryrefslogtreecommitdiff
path: root/commitpkg
diff options
context:
space:
mode:
Diffstat (limited to 'commitpkg')
-rwxr-xr-xcommitpkg8
1 files changed, 8 insertions, 0 deletions
diff --git a/commitpkg b/commitpkg
index 7ef75b3..6a232e8 100755
--- a/commitpkg
+++ b/commitpkg
@@ -27,14 +27,22 @@ fi
source PKGBUILD
pkgfile=${pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
+anypkgfile=${pkgname}-${pkgver}-${pkgrel}-any${PKGEXT}
oldstylepkgfile=${pkgname}-${pkgver}-${pkgrel}${PKGEXT}
if [ ! -f $pkgfile ]; then
if [ -f $PKGDEST/$pkgfile ]; then
pkgfile=$PKGDEST/$pkgfile
+ anypkgfile=$PKGDEST/$anypkgfile
oldstylepkgfile=$PKGDEST/$oldstylepkgfile
+ elif [ -f $anypkgfile ]; then
+ pkgfile=$anypkgfile
+ CARCH=any
elif [ -f $oldstylepkgfile ]; then
pkgfile=$oldstylepkgfile
+ elif [ -f $PKGDEST/$anypkgfile ]; then
+ pkgfile=$PKGDEST/$anypkgfile
+ CARCH=any
elif [ -f $PKGDEST/$oldstylepkgfile ]; then
pkgfile=$PKGDEST/$oldstylepkgfile
else