Make PyYAML overridable on Red Hat family distros
This patch fixes an early stack issue where the following error message would be presented: ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. We also drop references to removal of Python 2 library egg infos now that Python 2 is EOL. Closes-Bug: #1892363 Change-Id: I2876ee58ab6b73682869d6b4e684e10ac5e56ad9
This commit is contained in:
parent
5b1d5a99fa
commit
b9fe9c74f6
@ -162,10 +162,7 @@ function fixup_fedora {
|
||||
# manifest of what to remove. However, in most cases, simply
|
||||
# overwriting works. So this hacks around those packages that
|
||||
# have been dragged in by some other system dependency
|
||||
sudo rm -rf /usr/lib/python2.7/site-packages/enum34*.egg-info
|
||||
sudo rm -rf /usr/lib/python2.7/site-packages/ipaddress*.egg-info
|
||||
sudo rm -rf /usr/lib/python2.7/site-packages/ply-*.egg-info
|
||||
sudo rm -rf /usr/lib/python2.7/site-packages/typing-*.egg-info
|
||||
sudo rm -rf /usr/lib64/python3*/site-packages/PyYAML-*.egg-info
|
||||
}
|
||||
|
||||
function fixup_suse {
|
||||
|
Loading…
Reference in New Issue
Block a user