From b9fe9c74f68f1881c0602748301ec6b68ed508d6 Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Thu, 20 Aug 2020 14:42:55 +0200 Subject: [PATCH] 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 --- tools/fixup_stuff.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/fixup_stuff.sh b/tools/fixup_stuff.sh index e1409291b9..bf31dcbebb 100755 --- a/tools/fixup_stuff.sh +++ b/tools/fixup_stuff.sh @@ -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 {