rpm_install: return 0 if package was already installed
Currently, if the package was already installed, the script would return 2, or 6 or the package would be upgraded. It causes the script to fail (we use set -e); so to avoid that we added --replacepkgs --replacefiles and --oldpackage arguments to rpm. - Install the packages even if some of them are already installed on this system. - Install the packages even if they replace files from other, already installed, packages. - Allow an upgrade to replace a newer package with an older one. Change-Id: I8391e02456a304d4e29256cbbf5433879c6c42b1
This commit is contained in:
parent
4130a447d4
commit
affe2c3e71
|
@ -2,6 +2,6 @@
|
|||
|
||||
set -eox pipefail
|
||||
|
||||
rpm -Uvh /tmp/*.rpm
|
||||
rpm --replacepkgs --replacefiles --oldpackage -Uvh /tmp/*.rpm
|
||||
rm -f /tmp/*.rpm
|
||||
rm -f /tmp/rpm_install.sh
|
||||
|
|
Loading…
Reference in New Issue