projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b329fda
)
Handle a KeyError if an MTIME is missing from the Packages index.
author
Zac Medico
<zmedico@gentoo.org>
Tue, 22 May 2007 12:26:12 +0000
(12:26 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 22 May 2007 12:26:12 +0000
(12:26 -0000)
svn path=/main/trunk/; revision=6571
pym/portage/dbapi/bintree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/bintree.py
b/pym/portage/dbapi/bintree.py
index 9d9b8400500bccbda2f9eefaee7b9d7589e5acde..030f03163bd77a436ac679cb7f0ca610d7ff9734 100644
(file)
--- a/
pym/portage/dbapi/bintree.py
+++ b/
pym/portage/dbapi/bintree.py
@@
-412,9
+412,9
@@
class binarytree(object):
skip = False
if d:
try:
- if long(d
.get("MTIME")
) == long(s.st_mtime):
+ if long(d
["MTIME"]
) == long(s.st_mtime):
skip = True
- except
ValueError
:
+ except
(KeyError, ValueError)
:
pass
if skip and not self._pkgindex_keys.difference(d):
pkg_paths[mycpv] = mypath