summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 8afd051ca..3edc5296a 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6253,14 +6253,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]