Improve select distro.

master
Mike Hiretsky 14 years ago
parent 6c741ef950
commit c9ebc799b5

@ -541,7 +541,14 @@ class cl_builder(color_print):
if len(distros) == 1:
newprofile = distros[0]
newprofile = newprofile or ""
reProfile = re.compile('(^|/)%s(/|$)'%newprofile.strip('/'),re.S)
# if $ at end of newprofile then it be at end of profile name
if newprofile.endswith("$"):
newprofile = newprofile[:-1]
reProfile = re.compile('(^|/)%s$'%
"/([^/]+/)*".join(newprofile.strip('/').split('/')),re.S|re.I)
else:
reProfile = re.compile('(^|/)%s(/|$)'%
"/([^/]+/)*".join(newprofile.strip('/').split('/')),re.S|re.I)
likeProfile = filter(reProfile.search,
self.clVars.Get('cl_builder_distro'))
if len(likeProfile) != 1:

Loading…
Cancel
Save