diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-09 15:02:17 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-09 15:02:17 +0200 |
commit | 042bf4297f31ffdc1eb5083ca43c567859dc0380 (patch) | |
tree | 4c4ebf3df871bcc3a95a27c22fb713b65d454738 /checkapk.in | |
parent | 4134332906eff7216b417342f648365e19ad384d (diff) | |
download | abuild-042bf4297f31ffdc1eb5083ca43c567859dc0380.tar.gz abuild-042bf4297f31ffdc1eb5083ca43c567859dc0380.tar.bz2 abuild-042bf4297f31ffdc1eb5083ca43c567859dc0380.tar.xz abuild-042bf4297f31ffdc1eb5083ca43c567859dc0380.zip |
checkapk: fix to work with https repositories
Diffstat (limited to 'checkapk.in')
-rw-r--r-- | checkapk.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 |