]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Update runInstall file for installation on Mandriva 2006
authormaintenance team <salome-mnt@opencascade.com>
Wed, 26 Apr 2006 13:08:11 +0000 (13:08 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Wed, 26 Apr 2006 13:08:11 +0000 (13:08 +0000)
runInstall

index 8472253292766371dd5ec51a0d31aa59767c2dd4..e4811f1d14d11bd59088ff4c65d541f81469f2a7 100755 (executable)
@@ -879,6 +879,13 @@ if __name__ == "__main__":
             plt_name = "Debian"
             plt_ver = open("/etc/debian_version").readline().strip()
         _xml_file_name = "config_%s_%s.xml"%(plt_name, plt_ver)
+        if plt_name and plt_ver and os.path.exists("%s/%s"%(cur_dir, _xml_file_name)):
+            xml_file_name = _xml_file_name
+        elif os.path.exists("/etc/mandriva_release"):
+            # - Mandriva 2006
+            plt_name = "Mandriva"
+            plt_ver = open("/etc/mandriva_release").readline().strip()
+        _xml_file_name = "config_%s_%s.xml"%(plt_name, plt_ver)
         if plt_name and plt_ver and os.path.exists("%s/%s"%(cur_dir, _xml_file_name)):
             xml_file_name = _xml_file_name
         else: