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() {