projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a34eae
)
Remove a redundant os.access() call in portdbapi.aux_get()
author
Zac Medico
<zmedico@gentoo.org>
Tue, 9 Oct 2007 06:06:27 +0000
(06:06 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 9 Oct 2007 06:06:27 +0000
(06:06 -0000)
and handle the potential OSError instead.
svn path=/main/trunk/; revision=8009
pym/portage/dbapi/porttree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/porttree.py
b/pym/portage/dbapi/porttree.py
index 6ef737f8f05ceba0ab19dcbb3018a9346c9a0d84..d47f6fd9d94c5d1edfd88c19f6e92fbc590278f1 100644
(file)
--- 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]
- e
lse
:
+ e
xcept 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]