don't try to use curl with https, it requires a wrapper to work
This commit is contained in:
parent
710f1dfef8
commit
e680e0821a
|
@ -6,6 +6,8 @@ export PKG_PATH="${INSTALLURL}/$(uname -r)/packages-stable/$(machine)/"
|
||||||
CACHE_DIR=/var/cache/pkgupdate/
|
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() {
|
def_curl() {
|
||||||
if type curl 2> /dev/null >/dev/null
|
if type curl 2> /dev/null >/dev/null
|
||||||
then
|
then
|
||||||
|
@ -54,7 +56,9 @@ do_http() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_https() {
|
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() {
|
unsupported() {
|
||||||
|
|
Loading…
Reference in New Issue