checkapk: fix to work with https repositories
This commit is contained in:
parent
4134332906
commit
042bf4297f
@ -63,8 +63,8 @@ for i in $pkgname $subpackages; do
|
|||||||
done
|
done
|
||||||
[ -f "$filepath" ] || die "can't find $pkgfile"
|
[ -f "$filepath" ] || die "can't find $pkgfile"
|
||||||
|
|
||||||
# generate a temp repositories file with only the http repos
|
# generate a temp repositories file with only the http(s) repos
|
||||||
grep ^http: /etc/apk/repositories > $tmpdir/repositories
|
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 2>&1 | sed 's/^Downloading //')
|
||||||
if [ "${oldpkg}" = "${pkg}" ]; then
|
if [ "${oldpkg}" = "${pkg}" ]; then
|
||||||
|
Reference in New Issue
Block a user