summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-07-27 14:50:15 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-07-27 14:50:32 +0300
commit034e36f72164c105013a6565c091f16df848d146 (patch)
tree9a9583cde1a8fd978df403d9806f214d31266646
parent8302c0652c99f861ab05f0903579c74793cf5ab5 (diff)
downloadabuild-034e36f72164c105013a6565c091f16df848d146.tar.gz
abuild-034e36f72164c105013a6565c091f16df848d146.tar.bz2
abuild-034e36f72164c105013a6565c091f16df848d146.tar.xz
abuild-034e36f72164c105013a6565c091f16df848d146.zip
checkapk: treat subpackages items as colon separated lists
fixes to pick correct subpackage name when "pkg:split:arch" syntax is used.
-rw-r--r--checkapk.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkapk.in b/checkapk.in
index 6887961..6998868 100644
--- a/checkapk.in
+++ b/checkapk.in
@@ -50,7 +50,7 @@ tmpdir=$(mktemp -d -t checkpkg-script.XXXXXX)
cd "$tmpdir" || die "failed to create temp dir"
for i in $pkgname $subpackages; do
- _pkgname=${i%:*}
+ _pkgname=${i%%:*}
pkg=${_pkgname}-$pkgver-r$pkgrel
pkgfile=${pkg}.apk
repodir=${startdir%/*}