summaryrefslogtreecommitdiff
path: root/checkapk.in
diff options
context:
space:
mode:
Diffstat (limited to 'checkapk.in')
-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