From 6528db1cdddfada110904347c32b6a63947a3840 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Fri, 13 Aug 2010 13:55:12 +0400 Subject: [PATCH] Fix bad getting linux shortname --- pym/cl_fill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/cl_fill.py b/pym/cl_fill.py index 0bf69c3..c37b506 100644 --- a/pym/cl_fill.py +++ b/pym/cl_fill.py @@ -291,7 +291,7 @@ class fillVars(glob_attr): makeprofile = '/etc/make.profile' if os.path.exists(makeprofile): link = os.readlink(makeprofile) - reMakeProfileLink = re.compile('calculate/(desktop|server)/(%s)'% + reMakeProfileLink = re.compile('/calculate/(desktop|server)/(%s)/'% "|".join(self.dictLinuxName.keys()),re.S) shortnameSearch = reMakeProfileLink.search(link) if shortnameSearch: