diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-13 07:30:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-13 07:30:09 +0000 |
commit | 49a048669ce963c59a6a417aa84b69665d20eb70 (patch) | |
tree | 3161814a15ed22e86c88b13b50072421b17ecd89 /checkapk.in | |
parent | 2f68278fbad4d516fe0d5f61008ae9ed800b5c04 (diff) | |
download | abuild-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.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 |