summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-05-01 02:08:39 -0500
committerMax Rees <maxcrees@me.com>2020-05-01 02:08:39 -0500
commit8149e535ea654af78d593995335d1aa50ffbd0dc (patch)
tree1d46b50af47d5f7a35ffe797a890ac2f74ade519
parent649fb6374ae5b0581c0d02c78e1feb78ee1c3ad6 (diff)
downloadabuild-8149e535ea654af78d593995335d1aa50ffbd0dc.tar.gz
abuild-8149e535ea654af78d593995335d1aa50ffbd0dc.tar.bz2
abuild-8149e535ea654af78d593995335d1aa50ffbd0dc.tar.xz
abuild-8149e535ea654af78d593995335d1aa50ffbd0dc.zip
checkapk: allow $APK_FETCH override
-rw-r--r--checkapk.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/checkapk.in b/checkapk.in
index 5841a37..f254821 100644
--- a/checkapk.in
+++ b/checkapk.in
@@ -22,6 +22,7 @@ case "$(tar --version)" in
*) die 'unknown tar flavor';;
esac
: ${APK:="/sbin/apk"}
+: ${APK_FETCH:="$APK"}
if command -v abipkgdiff >/dev/null 2>&1; then
abigail=1
fi
@@ -57,7 +58,7 @@ usage() {
}
fetch_old() {
- if ! $APK fetch --stdout --repositories-file "$tmpdir/repositories" "$1" > old.apk; then
+ if ! $APK_FETCH fetch --stdout --repositories-file "$tmpdir/repositories" "$1" > old.apk; then
warning "could not download $1 (network error or new package)"
return 1
else