diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-03 05:12:02 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-10-01 17:14:36 +0100 |
commit | 1c075c2855699fcc943bdfc08b264151392e4b6d (patch) | |
tree | 1c18714ac7216386bfe0ad81dd8a57383fb5255e /checkapk.in | |
parent | 05eee44039fb1f099f78abaab4eec9bd014be8ee (diff) | |
download | abuild-1c075c2855699fcc943bdfc08b264151392e4b6d.tar.gz abuild-1c075c2855699fcc943bdfc08b264151392e4b6d.tar.bz2 abuild-1c075c2855699fcc943bdfc08b264151392e4b6d.tar.xz abuild-1c075c2855699fcc943bdfc08b264151392e4b6d.zip |
Fix package version check on checkapk
The assignment of the oldpkg variable is missing the name of the package
Diffstat (limited to 'checkapk.in')
-rw-r--r-- | checkapk.in | 2 |
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 |