diff --git a/hasher/hsh-sh-functions.in b/hasher/hsh-sh-functions.in index 460fc89..854cd1d 100644 --- a/hasher/hsh-sh-functions.in +++ b/hasher/hsh-sh-functions.in @@ -628,13 +628,12 @@ print_uris() { local out local options='-q -y -o RPM::PM=external -o Dir::Bin::rpm=hsh-rpmi-print-files' - if ! out="$("$aptbox/apt-get" $options install -- "$@" 2>&1)"; then - printf %s\\n "$out" >&2 - fatal 'failed to calculate package file list.' + if ! out="$("$aptbox/apt-get" $options install -- "$@" 2>&1 | tee /dev/stderr)"; then + fatal 'Failed to calculate package file list.' fi printf %s "$out" |LC_ALL=C grep '^/.*\.rpm$' || [ $? -eq 1 ] - verbose 'calculated package file list.' + verbose 'Calculated package file list.' } parse_xauth_entry()