Use distro pip on Ubuntu

Running get-pip.py fails on Ubuntu when running twice, e.g. after a
unstack/stack cycle. Just use distro pip instead.

Closes-Bug: #1957048
Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I87a8d53ed8860dd017a6c826dee6b6f4baef3c96
This commit is contained in:
Dr. Jens Harbott 2022-01-22 13:54:12 +01:00
parent d5d0bed479
commit d6909e41af
No known key found for this signature in database
GPG Key ID: E7862B245C3596B1
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ if is_fedora && [[ ${DISTRO} == f* || ${DISTRO} == rhel9 ]]; then
# For general sanity, we just use the packaged pip. It should be
# recent enough anyway. This is included via rpms/general
: # Simply fall through
elif is_ubuntu; then
: # pip on Ubuntu 20.04 is new enough, too
else
install_get_pip
fi