From: vsr Date: Wed, 27 Nov 2013 11:15:17 +0000 (+0000) Subject: Update for Ubuntu X-Git-Tag: V7_3_0rc1~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e7e81904e1f12f3203cce9039abddd6508fdb5c7;p=tools%2Finstall.git Update for Ubuntu --- diff --git a/runInstall b/runInstall index 37da557..b7f7f21 100755 --- a/runInstall +++ b/runInstall @@ -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