summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 11:03:23 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 11:03:23 (EDT)
commit9ec1ab1b800b59cbbdcff1a29857a8a2d44a57c8 (patch)
treea5d11bee013056f045885b87104f59b67f19cc77 /src
parent29a1ce969f748ef72999b89935fb5a8bdb96c416 (diff)
feed_download(): Write list file directly
Diffstat (limited to 'src')
-rw-r--r--src/feed.sh5
-rw-r--r--src/install.sh4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/feed.sh b/src/feed.sh
index b5247e3..a29ea0a 100644
--- a/src/feed.sh
+++ b/src/feed.sh
@@ -32,7 +32,8 @@ feed_deps=
feed_download()
{
local base_url="${1}"
- local use_gzip="${2}"
+ local list_file="${2}"
+ local use_gzip="${3}"
local url=
if ${use_gzip}; then
@@ -41,7 +42,7 @@ feed_download()
url="${base_url}/Packages"
fi
- ${WGET} -q -O - "${url}"
+ ${WGET} -q -O "${list_file}" "${url}"
return 0
}
diff --git a/src/install.sh b/src/install.sh
index a71c8ae..b2002cb 100644
--- a/src/install.sh
+++ b/src/install.sh
@@ -124,8 +124,8 @@ install_find_pkgs()
esac
printf '%s %s %s\n' "${type}" "${name}" \
"${base_url}" >&${opkg_conf_fd}
- feed_download "${base_url}" ${gzip} \
- >"${root}/var/lib/opkg/lists/${name}"
+ feed_download "${base_url}" \
+ "${root}/var/lib/opkg/lists/${name}" ${gzip}
install_feed_url="${base_url}"
feed_find_pkgs "${root}/var/lib/opkg/lists/${name}" \
"$(profile_dep_fields)" profile_include_pkg \