From 60a2c22e1c40bb2e575320c5d30a5c23bb0a16bd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 16 Oct 2011 20:00:08 -0700 Subject: [PATCH] hashed_path: convert OSError to PermissionDenied --- pym/portage/eclass_cache.py | 2 ++ 1 file changed, 2 insertions(+) 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(): -- 2.26.2