from portage.localization import _
from portage.proxy.objectproxy import ObjectProxy
from portage.cache.mappings import UserDict
-from portage.const import EPREFIX, EPREFIX_LSTRIP
+from portage.const import EPREFIX
noiselimit = 0
self._dirs = set()
for x in self.protect_list:
ppath = normalize_path(
- os.path.join(self.myroot + EPREFIX_LSTRIP, x.lstrip(os.path.sep)))
+ os.path.join(self.myroot, x.lstrip(os.path.sep)))
try:
if stat.S_ISDIR(os.stat(ppath).st_mode):
self._dirs.add(ppath)
self.protectmask = []
for x in self.mask_list:
ppath = normalize_path(
- os.path.join(self.myroot + EPREFIX_LSTRIP, x.lstrip(os.path.sep)))
+ os.path.join(self.myroot, x.lstrip(os.path.sep)))
try:
"""Use lstat so that anything, even a broken symlink can be
protected."""