summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-17 00:55:05 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-17 00:55:05 (EDT)
commite3b6f6490c70180a850302318da50f901759b225 (patch)
tree10828f391c37872dbae5fcd0b0b61dc810526afc /src
parent5e9cea65c5f5e790024ce6731336641873cde750 (diff)
feed_find_pkgs(): Don't run parse_control() in a subshell
Fixes a bug introduced in commit 2e8da12.
Diffstat (limited to 'src')
-rw-r--r--src/feed.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/feed.sh b/src/feed.sh
index 5f8d86b..af1cfe3 100644
--- a/src/feed.sh
+++ b/src/feed.sh
@@ -131,8 +131,10 @@ feed_find_pkgs()
feed_pkg=''
feed_deps=''
- { ${GUNZIP} -c -- "${feed_idx}" || cat "${feed_idx}"; } 2>/dev/null | \
- parse_control '-' feed_field_cb feed_para_cb 'Package'
+ parse_control '-' feed_field_cb feed_para_cb 'Package' <<-EOF
+ $({ ${GUNZIP} -c -- "${feed_idx}" || cat "${feed_idx}"; } \
+ 2>/dev/null)
+ EOF
printf '%s\n' "${feed_pkgs# }"