summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-08-07 22:55:43 -0500
committerMax Rees <maxcrees@me.com>2020-03-07 17:36:52 -0600
commitaa18057269997a2d5dcef07d2ac007989f303d60 (patch)
tree078acb249681f4a62bdc19d7362d56b49a2a0ec9
parent9f703d3222a6a8d52ac560035fb1a988d2f9bff7 (diff)
downloadabuild-aa18057269997a2d5dcef07d2ac007989f303d60.tar.gz
abuild-aa18057269997a2d5dcef07d2ac007989f303d60.tar.bz2
abuild-aa18057269997a2d5dcef07d2ac007989f303d60.tar.xz
abuild-aa18057269997a2d5dcef07d2ac007989f303d60.zip
checkapk: remove dead code
-rw-r--r--checkapk.in5
1 files changed, 0 insertions, 5 deletions
diff --git a/checkapk.in b/checkapk.in
index 4f9b27a..f8a8d1b 100644
--- a/checkapk.in
+++ b/checkapk.in
@@ -67,11 +67,6 @@ 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 //')
- if [ "${oldpkg}" = "${pkg}" ]; then
- die "the built package ($_pkgname) is already in the repo"
- fi
-
apk fetch --quiet --repositories-file $tmpdir/repositories --stdout $_pkgname \
| tar -ztf - | grep -v '^\.SIGN\.' | sort > filelist-$_pkgname-old \
|| die "failed to download old pkg, maybe run 'apk update'?"