From: Zac Medico Date: Mon, 17 Oct 2011 03:00:08 +0000 (-0700) Subject: hashed_path: convert OSError to PermissionDenied X-Git-Tag: v2.2.0_alpha68~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60a2c22e1c40bb2e575320c5d30a5c23bb0a16bd;p=portage.git hashed_path: convert OSError to PermissionDenied --- 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():