projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e17f4f
)
Tweak vardbapi.aux_get() cache logic a bit.
author
Zac Medico
<zmedico@gentoo.org>
Sun, 18 May 2008 22:27:15 +0000
(22:27 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 18 May 2008 22:27:15 +0000
(22:27 -0000)
svn path=/main/trunk/; revision=10360
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 8506a23e4486e71a301728f8b57ef452da231051..041c60a166849905081e5539b5d573cb4979d147 100644
(file)
--- a/
pym/portage/dbapi/vartree.py
+++ b/
pym/portage/dbapi/vartree.py
@@
-615,6
+615,8
@@
class vardbapi(dbapi):
mydata = {}
cache_valid = False
cache_incomplete = False
+ cache_mtime = None
+ metadata = None
if pkg_data:
cache_mtime, metadata = pkg_data
cache_valid = cache_mtime == mydir_mtime
@@
-638,7
+640,7
@@
class vardbapi(dbapi):
mydata[k] = v
if not cache_valid or cache_incomplete:
cache_data = {}
- if cache_
incomplete
:
+ if cache_
valid and metadata
:
cache_data.update(metadata)
for aux_key in cache_these:
cache_data[aux_key] = mydata[aux_key]