diff options
Diffstat (limited to 'checkapk.in')
-rw-r--r-- | checkapk.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/checkapk.in b/checkapk.in index 8723404..76d63eb 100644 --- a/checkapk.in +++ b/checkapk.in @@ -33,9 +33,10 @@ for i in $pkgname $subpackages; do _pkgname=${i%:*} pkg=${_pkgname}-$pkgver-r$pkgrel pkgfile=${pkg}.apk - repo=${startdir##*/} + repodir=${startdir%/*} + repo=${repodir##*/} - for filepath in "$PKGDEST"/$pkgfile "$REPODEST"/$repo/$pkgfile "$startdir"/$pkgfile; do + for filepath in "$PKGDEST"/$pkgfile "$REPODEST"/$repo/$CARCH/$pkgfile "$startdir"/$pkgfile; do if [ -f "$filepath" ]; then break fi |