summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 6ef737f8f..d47f6fd9d 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -272,14 +272,14 @@ class portdbapi(dbapi):
noiselevel=-1)
- if os.access(myebuild, os.R_OK):
+ try:
emtime = os.stat(myebuild)[stat.ST_MTIME]
- else:
+ except OSError:
writemsg("!!! aux_get(): ebuild for '%(cpv)s' does not exist at:\n" % {"cpv":mycpv},
noiselevel=-1)
writemsg("!!! %s\n" % myebuild,
noiselevel=-1)
- raise KeyError
+ raise KeyError(mycpv)
try:
mydata = self.auxdb[mylocation][mycpv]