summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 22:38:47 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 22:38:47 (EDT)
commit77b55d7c5e96afed14b089d739bf503225db2cc6 (patch)
tree637ea12f7f878444886c2d91a0a60f62c2967570 /src
parent6295cab05416b762cb9daeb35de67798a37e03ca (diff)
feed_download*(): Accept root arg
Diffstat (limited to 'src')
-rw-r--r--src/feed.sh2
-rw-r--r--src/install.sh2
2 files changed, 3 insertions, 1 deletions
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}"