From 9ec1ab1b800b59cbbdcff1a29857a8a2d44a57c8 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 16 Apr 2019 11:03:23 -0400 Subject: feed_download(): Write list file directly --- 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 \ -- cgit v0.9.1