summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--checkapk.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/checkapk.in b/checkapk.in
index 500e9c7..78c601e 100644
--- a/checkapk.in
+++ b/checkapk.in
@@ -21,6 +21,7 @@ case "$(tar --version)" in
*busybox*) tar_flavor=busybox;;
*) die 'unknown tar flavor';;
esac
+: ${APK:="apk"}
usage() {
cat >&2 <<-__EOF__
@@ -90,7 +91,7 @@ check_soname() {
warning2 "-> $soname_new=$sover_new"
fi
- rdeps="$(apk search --repositories-file "$tmpdir/repositories" \
+ rdeps="$($APK search --repositories-file "$tmpdir/repositories" \
--rdepends --quiet "$soname" | sort -u)"
real_rdeps=
@@ -155,7 +156,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"
- if ! oldapk="$(apk fetch --repositories-file "$tmpdir/repositories" "$_pkgname")"; then
+ if ! oldapk="$($APK fetch --repositories-file "$tmpdir/repositories" "$_pkgname")"; then
warning "could not download $_pkgname (network error or new package)"
continue
fi