]> git.openfabrics.org - ~tnikolova/ofed_scripts/.git/commitdiff
install.pl: Use '--force' flag for all SLES versions vofed-1.5.2-rc2
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 15 Jun 2010 13:58:05 +0000 (16:58 +0300)
committerVladimir Sokolovsky <vlad@mellanox.co.il>
Tue, 15 Jun 2010 13:58:05 +0000 (16:58 +0300)
Installation of 32bit RPMs on 64bit SLES OS fails on conflict.
The reason is the same RPM name for 32 and 64-bit RPMs.
As a workaround '--force' flag used with 'rpm -i' command.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
install.pl

index 89ca93c5777f8206c51ba685397192d6ab70db60..54f3b0f5d7d97bc864532fa78345b87903e23fdd 100755 (executable)
@@ -3481,7 +3481,7 @@ sub install_rpm_32
     }
 
     $cmd = "rpm -iv $rpminstall_flags";
-    if ($distro eq "SuSE" and $dist_rpm_rel gt 15.2) {
+    if ($distro eq "SuSE") {
         $cmd .= " --force";
     }
     $cmd .= " $package";