checkapk: find package when REPODEST is used

This commit is contained in:
Natanael Copa 2013-02-13 07:30:09 +00:00
parent 2f68278fba
commit 49a048669c
1 changed files with 3 additions and 2 deletions

View File

@ -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