develop
Самоукин Алексей 14 years ago
parent 97be352d08
commit 6384116ce9

@ -241,10 +241,16 @@ class _allPkg(object):
self._listPkgObjReverse = listPkgObj[:]
self._listPkgObjReverse.sort(smpPrioritetReverse)
def APIList(self):
return self._listPkgObjNormal
def APIListReverse(self):
return self._listPkgObjReverse
def __getattribute__(self, attr):
if attr.startswith("__") or\
attr in ('_listPkgObjNormal','_listPkgObjReverse'):
attr in ('_listPkgObjNormal', '_listPkgObjReverse',
'APIList', 'APIListReverse'):
value = object.__getattribute__(self, attr)
else:
if attr.startswith('stop') or attr.startswith('del'):

@ -3501,6 +3501,11 @@ re.M|re.S)
if configPath and self.protectPaths:
flagFoundPath = False
for protectPath in self.protectPaths:
if self._baseDir != "/":
lenBaseDir = len(self._baseDir)
if len(configPath)>lenBaseDir and\
configPath[:lenBaseDir] == self._baseDir:
configPath = configPath[lenBaseDir:]
if configPath.startswith(protectPath + "/"):
flagFoundPath = True
break

Loading…
Cancel
Save