Browse Source

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
changes/24/739224/1
Emilien Macchi 1 month ago
parent
commit
affe2c3e71
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      files/rpm_install.sh

+ 1
- 1
files/rpm_install.sh View File

@@ -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…
Cancel
Save