summaryrefslogtreecommitdiff
path: root/checkapk.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-02-13 07:30:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-02-13 07:30:09 +0000
commit49a048669ce963c59a6a417aa84b69665d20eb70 (patch)
tree3161814a15ed22e86c88b13b50072421b17ecd89 /checkapk.in
parent2f68278fbad4d516fe0d5f61008ae9ed800b5c04 (diff)
downloadabuild-49a048669ce963c59a6a417aa84b69665d20eb70.tar.gz
abuild-49a048669ce963c59a6a417aa84b69665d20eb70.tar.bz2
abuild-49a048669ce963c59a6a417aa84b69665d20eb70.tar.xz
abuild-49a048669ce963c59a6a417aa84b69665d20eb70.zip
checkapk: find package when REPODEST is used
Diffstat (limited to 'checkapk.in')
-rw-r--r--checkapk.in5
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