summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-03 05:12:02 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-10-01 17:14:36 +0100
commit1c075c2855699fcc943bdfc08b264151392e4b6d (patch)
tree1c18714ac7216386bfe0ad81dd8a57383fb5255e
parent05eee44039fb1f099f78abaab4eec9bd014be8ee (diff)
downloadabuild-1c075c2855699fcc943bdfc08b264151392e4b6d.tar.bz2
abuild-1c075c2855699fcc943bdfc08b264151392e4b6d.tar.xz
Fix package version check on checkapk
The assignment of the oldpkg variable is missing the name of the package
-rw-r--r--checkapk.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkapk.in b/checkapk.in
index 334bbb9..0b17a1e 100644
--- a/checkapk.in
+++ b/checkapk.in
@@ -67,7 +67,7 @@ for i in $pkgname $subpackages; do
# generate a temp repositories file with only the http(s) repos
grep -E "^https?:" /etc/apk/repositories > $tmpdir/repositories
- oldpkg=$(apk fetch --repositories-file $tmpdir/repositories --simulate 2>&1 | sed 's/^Downloading //')
+ oldpkg=$(apk fetch --repositories-file $tmpdir/repositories --simulate $_pkgname 2>&1 | sed 's/^Downloading //')
if [ "${oldpkg}" = "${pkg}" ]; then
die "the built package ($_pkgname) is already in the repo"
fi