From a4d4370ac94d4a87e6d8fb3c2d26d8c2e5ef19fd Mon Sep 17 00:00:00 2001 From: Quique Llorente Date: Fri, 12 Apr 2019 15:02:23 +0200 Subject: [PATCH] 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 --- roles/run-test/templates/toci_gate_test.sh.j2 | 2 -- 1 file changed, 2 deletions(-) diff --git a/roles/run-test/templates/toci_gate_test.sh.j2 b/roles/run-test/templates/toci_gate_test.sh.j2 index dd03d2b2a..0ae4c518b 100755 --- a/roles/run-test/templates/toci_gate_test.sh.j2 +++ b/roles/run-test/templates/toci_gate_test.sh.j2 @@ -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