From e3b6f6490c70180a850302318da50f901759b225 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 17 Apr 2019 00:55:05 -0400 Subject: feed_find_pkgs(): Don't run parse_control() in a subshell Fixes a bug introduced in commit 2e8da12. --- (limited to 'src') 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# }" -- cgit v0.9.1