Skip to content
Snippets Groups Projects
Commit 49a04866 authored by Natanael Copa's avatar Natanael Copa
Browse files

checkapk: find package when REPODEST is used

parent 2f68278f
No related branches found
No related tags found
No related merge requests found
...@@ -33,9 +33,10 @@ for i in $pkgname $subpackages; do ...@@ -33,9 +33,10 @@ for i in $pkgname $subpackages; do
_pkgname=${i%:*} _pkgname=${i%:*}
pkg=${_pkgname}-$pkgver-r$pkgrel pkg=${_pkgname}-$pkgver-r$pkgrel
pkgfile=${pkg}.apk 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 if [ -f "$filepath" ]; then
break break
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment