From e7e81904e1f12f3203cce9039abddd6508fdb5c7 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 27 Nov 2013 11:15:17 +0000 Subject: [PATCH] Update for Ubuntu --- runInstall | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2