From 2e8da1231bba19721704b197f2d71ceeacba2c37 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 16 Apr 2019 10:53:50 -0400 Subject: feed_find_pkgs(): Automatically gunzip feed index --- 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# }" -- cgit v0.9.1