summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-08 16:44:47 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-08 16:44:47 +0000
commit6a419a479a306952e28414ed5e0d4300df0acab0 (patch)
tree601a12c83c3b47075491d998c1723c265645c964
parent3b3900b799799bea991d541c63535a12045f3bbe (diff)
downloadportage-6a419a479a306952e28414ed5e0d4300df0acab0.tar.gz
portage-6a419a479a306952e28414ed5e0d4300df0acab0.tar.bz2
portage-6a419a479a306952e28414ed5e0d4300df0acab0.zip
Pass the file path into the PermissionDenied exception.
svn path=/main/trunk/; revision=7204
-rw-r--r--pym/portage/dbapi/vartree.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 03db114b1..d91073705 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -342,12 +342,13 @@ class vardbapi(dbapi):
cpc = self.cpcache[mycp]
if cpc[0] == mystat:
return cpc[1]
+ cat_dir = self.getpath(mysplit[0])
try:
- dir_list = os.listdir(self.getpath(mysplit[0]))
+ dir_list = os.listdir(cat_dir)
except EnvironmentError, e:
from portage.exception import PermissionDenied
if e.errno == PermissionDenied.errno:
- raise PermissionDenied(e)
+ raise PermissionDenied(cat_dir)
del e
dir_list = []