summaryrefslogtreecommitdiffstats
path: root/src/feed.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 10:39:00 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 10:39:00 (EDT)
commitbdf8f4e22d815806c452fe97a03320af87ea1c13 (patch)
tree55a4712750137812860e5217394afe403317fc27 /src/feed.sh
parentdfb5527c2021ab89ec69e2133817b9ce3f3b49e9 (diff)
feed_download(): Accept base URL, not index URL
Diffstat (limited to 'src/feed.sh')
-rw-r--r--src/feed.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/feed.sh b/src/feed.sh
index 1fb3d28..bd2de5f 100644
--- a/src/feed.sh
+++ b/src/feed.sh
@@ -31,17 +31,20 @@ feed_deps=
feed_download()
{
- local feed_index="${1}"
+ local base_url="${1}"
local use_gzip="${2}"
+ local url=
local gzip=
if ${use_gzip}; then
+ url="${base_url}/Packages.gz"
gzip="${GUNZIP}"
else
+ url="${base_url}/Packages"
gzip=cat
fi
- ${WGET} -q -O - "${feed_index}" | ${gzip}
+ ${WGET} -q -O - "${url}" | ${gzip}
return 0
}