Fix bad getting linux shortname

develop
Mike Hiretsky 14 years ago
parent 168c54fc04
commit 6528db1cdd

@ -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:

Loading…
Cancel
Save