From 1c075c2855699fcc943bdfc08b264151392e4b6d Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 3 Sep 2019 05:12:02 -0300 Subject: Fix package version check on checkapk The assignment of the oldpkg variable is missing the name of the package --- checkapk.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2