Remove reinstall of RPMs

If we update the images and then we do reinstall it fails since updated
version if newer that one installed and reinstall cannot find the old
version anymore:

sudo /usr/bin/dnf -y '--exclude=python2*' reinstall python3-setuptools
 Installed package python3-setuptools-39.2.0-6.fc28.noarch not available.

Change-Id: I7f32ea045d70caa99a389f1681dcedc2d0eac898
Closes-Bug: #1823912
This commit is contained in:
Quique Llorente 2019-04-12 15:02:23 +02:00
parent f7e23b6b41
commit a4d4370ac9
1 changed files with 0 additions and 2 deletions

View File

@ -46,10 +46,8 @@ $(python_cmd) -m pip --version || \
(curl -s "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"; sudo $(python_cmd) get-pip.py)
if [ "$(python_cmd)" == "python3" ]; then
sudo $(package_manager) reinstall python3-setuptools
sudo $(package_manager) install python3-setuptools python3-requests python3-urllib3 python3-PyYAML shyaml
else
sudo $(package_manager) reinstall python2-setuptools
sudo $(package_manager) install python2-setuptools python2-requests python-requests python-urllib3 PyYAML
fi