try:
dir_list = os.listdir(cat_dir)
except EnvironmentError, e:
- from portage.exception import PermissionDenied
if e.errno == PermissionDenied.errno:
raise PermissionDenied(cat_dir)
del e
if catpkgsplit(subpath) is None:
self.invalidentry(os.path.join(self.root, subpath))
continue
- except portage.exception.InvalidData:
+ except InvalidData:
self.invalidentry(os.path.join(self.root, subpath))
continue
returnme.append(subpath)
y = y[1:]
try:
mysplit = catpkgsplit(y)
- except portage.exception.InvalidData:
+ except InvalidData:
self.invalidentry(self.getpath(y))
continue
if not mysplit: