diff options
author | Patrick 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) |
commit | e3b6f6490c70180a850302318da50f901759b225 (patch) | |
tree | 10828f391c37872dbae5fcd0b0b61dc810526afc | |
parent | 5e9cea65c5f5e790024ce6731336641873cde750 (diff) |
feed_find_pkgs(): Don't run parse_control() in a subshell
Fixes a bug introduced in commit 2e8da12.
-rw-r--r-- | src/feed.sh | 6 |
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# }" |