From: Zac Medico Date: Sun, 8 Jul 2007 16:44:47 +0000 (-0000) Subject: Pass the file path into the PermissionDenied exception. X-Git-Tag: v2.2_pre1~1055 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a419a479a306952e28414ed5e0d4300df0acab0;p=portage.git Pass the file path into the PermissionDenied exception. svn path=/main/trunk/; revision=7204 --- 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 = []