diff --git a/pym/cl_builder.py b/pym/cl_builder.py index e5689bd..072425e 100644 --- a/pym/cl_builder.py +++ b/pym/cl_builder.py @@ -541,7 +541,8 @@ class cl_builder(color_print): if len(distros) == 1: newprofile = distros[0] newprofile = newprofile or "" - likeProfile = filter(lambda x:newprofile in x, + reProfile = re.compile('(^|/)%s(/|$)'%newprofile.strip('/'),re.S) + likeProfile = filter(reProfile.search, self.clVars.Get('cl_builder_distro')) if len(likeProfile) != 1: if newprofile != "list":