From 60a2c22e1c40bb2e575320c5d30a5c23bb0a16bd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 16 Oct 2011 20:00:08 -0700 Subject: hashed_path: convert OSError to PermissionDenied --- pym/portage/eclass_cache.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pym') diff --git a/pym/portage/eclass_cache.py b/pym/portage/eclass_cache.py index 4a934f16f..77adcd03f 100644 --- a/pym/portage/eclass_cache.py +++ b/pym/portage/eclass_cache.py @@ -35,6 +35,8 @@ class hashed_path(object): except OSError as e: if e.errno in (errno.ENOENT, errno.ESTALE): raise FileNotFound(self.location) + elif e.errno == PermissionDenied.errno: + raise PermissionDenied(self.location) raise return obj if not attr.islower(): -- cgit v1.2.3-1-g7c22