From 77b55d7c5e96afed14b089d739bf503225db2cc6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 16 Apr 2019 22:38:47 -0400 Subject: feed_download*(): Accept root arg --- diff --git a/src/feed.sh b/src/feed.sh index db53f57..a4b4d31 100644 --- a/src/feed.sh +++ b/src/feed.sh @@ -34,6 +34,7 @@ feed_download() local base_url="${1}" local list_file="${2}" local use_gzip="${3}" + local root="${4}" local url= local gunzip= @@ -57,6 +58,7 @@ feed_download_cert() local base_url="${1}" local list_file="${2}" local use_gzip="${3}" + local root="${4}" local url= local usign= diff --git a/src/install.sh b/src/install.sh index 246240f..400fd3b 100644 --- a/src/install.sh +++ b/src/install.sh @@ -175,7 +175,7 @@ install_find_pkgs() "${base_url}" >&${opkg_conf_fd} if ! ${dl_func} "${base_url}" \ "${root}/var/lib/opkg/lists/${name}" \ - ${gzip}; then + ${gzip} "${root}"; then return 1 fi install_feed_url="${base_url}" -- cgit v0.9.1