# ---
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