diff --git a/functions-common b/functions-common index 94ab34763e..40a0d2b942 100644 --- a/functions-common +++ b/functions-common @@ -1578,7 +1578,7 @@ function pip_install { local sudo_pip="env" else local cmd_pip=$(get_pip_command) - local sudo_pip="sudo" + local sudo_pip="sudo -H" fi $xtrace diff --git a/tools/fixup_stuff.sh b/tools/fixup_stuff.sh index ca465339b7..26aae82535 100755 --- a/tools/fixup_stuff.sh +++ b/tools/fixup_stuff.sh @@ -85,7 +85,7 @@ function get_package_path { # Fix prettytable 0.7.2 permissions # Don't specify --upgrade so we use the existing package if present -pip_install 'prettytable>0.7' +pip_install 'prettytable>=0.7' PACKAGE_DIR=$(get_package_path prettytable) # Only fix version 0.7.2 dir=$(echo $PACKAGE_DIR/prettytable-0.7.2*)