|
|
@ -541,7 +541,14 @@ class cl_builder(color_print):
|
|
|
|
if len(distros) == 1:
|
|
|
|
if len(distros) == 1:
|
|
|
|
newprofile = distros[0]
|
|
|
|
newprofile = distros[0]
|
|
|
|
newprofile = newprofile or ""
|
|
|
|
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,
|
|
|
|
likeProfile = filter(reProfile.search,
|
|
|
|
self.clVars.Get('cl_builder_distro'))
|
|
|
|
self.clVars.Get('cl_builder_distro'))
|
|
|
|
if len(likeProfile) != 1:
|
|
|
|
if len(likeProfile) != 1:
|
|
|
|