commit | 782efb0f8a0b6c64e5b6a317ff5bf905e51da850 | [log] [tgz] |
---|---|---|
author | Colleen Murphy <colleen.murphy@suse.com> | Mon May 11 18:28:32 2020 -0700 |
committer | Colleen Murphy <colleen.murphy@suse.com> | Mon May 11 18:28:32 2020 -0700 |
tree | 9677e670892450c69d75fba4c1ec9ae21f81bbae | |
parent | 53c2f6fe23318d16f311fde58901ad12e37049a0 [diff] |
Fix pip distro package removal for focal Ubuntu Focal doesn't have python-pip, only python3-pip. Trying to uninstall a package that apt doesn't know about (installed or uninstalled) results in a nonzero exit code so devstack fails. This patch makes the package removal safer for both python2 and python3 cases by checking first if the package exists. Change-Id: I3b1118888cb0617ffb99b72c7e9a32308033783e