projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11c03b8
)
Make it easy to pass alternative cache implementations into the constructor as sugges...
author
Zac Medico
<zmedico@gentoo.org>
Tue, 20 Jun 2006 22:51:00 +0000
(22:51 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 20 Jun 2006 22:51:00 +0000
(22:51 -0000)
svn path=/main/trunk/; revision=3547
pym/cache/metadata_overlay.py
patch
|
blob
|
history
diff --git
a/pym/cache/metadata_overlay.py
b/pym/cache/metadata_overlay.py
index 821beead177695ead27c9888f4d998cd8b3a5503..287e05521ca4734c53447bb18717aa436df9f596 100644
(file)
--- a/
pym/cache/metadata_overlay.py
+++ b/
pym/cache/metadata_overlay.py
@@
-14,7
+14,8
@@
class database(template.database):
autocommits = True
serialize_eclasses = False
- def __init__(self, location, label, auxdbkeys, **config):
+ def __init__(self, location, label, auxdbkeys, db_rw=db_rw, db_ro=db_ro,
+ **config):
super(database, self).__init__(location, label, auxdbkeys)
self.db_rw = db_rw(location, label, auxdbkeys, **config)
self.db_ro = db_ro(label,"metadata/cache",auxdbkeys)