From 042bf4297f31ffdc1eb5083ca43c567859dc0380 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Tue, 9 Aug 2016 15:02:17 +0200 Subject: checkapk: fix to work with https repositories --- checkapk.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'checkapk.in') diff --git a/checkapk.in b/checkapk.in index 6998868..e00e675 100644 --- a/checkapk.in +++ b/checkapk.in @@ -63,8 +63,8 @@ for i in $pkgname $subpackages; do done [ -f "$filepath" ] || die "can't find $pkgfile" - # generate a temp repositories file with only the http repos - grep ^http: /etc/apk/repositories > $tmpdir/repositories + # 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 -- cgit v1.2.3-60-g2f50