summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 10:53:50 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 10:53:50 (EDT)
commit2e8da1231bba19721704b197f2d71ceeacba2c37 (patch)
tree7b52b60879b21f93c8084b5a141d60b1f93425bf /src
parent624f928550c76c803eb23cfdc4c481a47d167fc8 (diff)
feed_find_pkgs(): Automatically gunzip feed index
Diffstat (limited to 'src')
-rw-r--r--src/feed.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feed.sh b/src/feed.sh
index bd2de5f..39ba751 100644
--- a/src/feed.sh
+++ b/src/feed.sh
@@ -71,7 +71,8 @@ feed_find_pkgs()
feed_pkg=''
feed_deps=''
- parse_control "${feed_idx}" feed_field_cb feed_para_cb 'Package'
+ { ${GUNZIP} -c -- "${feed_idx}" || cat "${feed_idx}"; } 2>/dev/null | \
+ parse_control '-' feed_field_cb feed_para_cb 'Package'
printf '%s\n' "${feed_pkgs# }"