Browse Source

Call sudo with -H in pip_install

Commit 7aa7699acb was an incomplete
cherry pick since it missed the part that added -H to sudo pip install.

This is similar to what was added in change
If791b9b25d6a4280dab19117004184e57e78d038.

This is needed on stable/icehouse only since the change was made in
Kilo originally and backported to stable/juno.  This should fix grenade
against stable/juno changes where the 'old' side is stable/icehouse.

Change-Id: Ia52823ec2e322f78d407993010eb04adf39a242c
Closes-Bug: #1463149
Matt Riedemann 3 years ago
parent
commit
ea32a648e4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      functions-common

+ 1
- 1
functions-common View File

@@ -1356,7 +1356,7 @@ function pip_install {
1356 1356
         CMD_PIP=$DEST/.venv/bin/pip
1357 1357
         SUDO_PIP="env"
1358 1358
     else
1359
-        SUDO_PIP="sudo"
1359
+        SUDO_PIP="sudo -H"
1360 1360
         CMD_PIP=$(get_pip_command)
1361 1361
     fi
1362 1362
 

Loading…
Cancel
Save