From bba2e85c26cf29d9a4564142e092fa35b1f35148 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Mon, 15 Nov 2010 15:20:57 +0300 Subject: [PATCH] Change rules profile shortname. --- pym/cl_builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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":