Drop fakeroot for list/search actions on Debian

It isn't needed for informative actions and apparently fakeroot cause
problems on Whonix.

Suggested by @awokd
QubesOS/qubes-issues#3553
This commit is contained in:
Marek Marczykowski-Górecki 2018-02-13 18:52:46 +01:00
parent c567222b6f
commit 76f5253341
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -125,7 +125,7 @@ if ! $YUM --help | grep -q downloadonly; then
YUM_COMMAND="yumdownloader --destdir=$DOM0_UPDATES_DIR/packages --resolve"
elif [ "$YUM_ACTION" == "list" ] || [ "$YUM_ACTION" == "search" ]; then
# those actions do not download any package, so lack of --downloadonly is irrelevant
YUM_COMMAND="fakeroot $YUM $YUM_ACTION -y"
YUM_COMMAND="$YUM $YUM_ACTION -y"
elif [ "$YUM_ACTION" == "reinstal" ]; then
# this is just approximation of 'reinstall' action...
# shellcheck disable=SC2086