Try --force to silence rpm errors.

This commit is contained in:
Nick Martin
2012-02-24 22:14:54 -08:00
parent 0f49ed440d
commit f7824d096b
2 changed files with 2 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ elif [ "$UNAME" = "Linux" ] ; then
exit 1
fi
echo "... installing .rpm"
do_with_root rpm -Uvh --replacepkgs "$FILE"
do_with_root rpm -U --force "$FILE"
else
echo "Unsupported Linux distribution."

View File

@@ -137,7 +137,7 @@ updater.get_manifest(function (manifest) {
"." + rpm_arch + ".rpm";
download_callback = function (rpm_path) {
var proc = run_with_root('rpm', ['-Uvh', '--replacepkgs', rpm_path]);
var proc = run_with_root('rpm', ['-U', '--force', rpm_path]);
proc.on('exit', function (code, signal) {
if (code !== 0 || signal) {
console.log("failed to install rpm");