]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Update for Ubuntu
authorvsr <vsr@opencascade.com>
Wed, 27 Nov 2013 11:15:17 +0000 (11:15 +0000)
committervsr <vsr@opencascade.com>
Wed, 27 Nov 2013 11:15:17 +0000 (11:15 +0000)
runInstall

index 37da557de77f00fde6a829c71ae8969b1e88eae2..b7f7f210945bab4d94f077e9603471fd158294ca 100755 (executable)
@@ -987,10 +987,13 @@ def get_os_release():
         # ---
         regvar  = re.compile("(.*)\s+[^\s]*[R|r]elease[^\s]*\s+([\d.]*)")
         regvar1 = re.compile("(.*)\s+[^\s]*[L|l][I|i][N|n][U|u][X|x][^\s]*(.*)\s+([\d.]*)\s+")
+        regvar2 = re.compile("([A-Za-z]+)\s+([0-9.]+)\s+.*")
         for l in lines:
             res = re.search(regvar, l)
             if not res:
                 res = re.search(regvar1, l)
+            if not res:
+                res = re.search(regvar2, l)
             if res:
                 plt_name = " ".join(" ".join(res.groups()[:len(res.groups())-1]).split())
                 # workaround for Mandrake and other platforms