From e680e0821a5d0fd55fd72e9b2c5706104173c73d Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Sun, 15 Aug 2021 21:14:40 +0200 Subject: [PATCH] don't try to use curl with https, it requires a wrapper to work --- pkgupdate | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgupdate b/pkgupdate index 371d2f5..6bd0d80 100755 --- a/pkgupdate +++ b/pkgupdate @@ -6,6 +6,8 @@ export PKG_PATH="${INSTALLURL}/$(uname -r)/packages-stable/$(machine)/" CACHE_DIR=/var/cache/pkgupdate/ +# curl can only be used for http:// , it's quite complicated with https:// +# due to the way pkg_add calls $FETCH_CMD def_curl() { if type curl 2> /dev/null >/dev/null then @@ -54,7 +56,9 @@ do_http() { } do_https() { - do_http "https://" + echo "Updating using $1 protocol" + check_cache + pkg_add -u 2>&1 | grep -v "^Couldn't find updates for " } unsupported() {