summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-23 00:21:15 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-23 00:21:15 +0000
commit4789539e20f4a89b60ea28729c9c5920a71a2fc2 (patch)
tree6ec3845dc7561188043d9dee213b7538a8807f5f
parent88837dde0134300dac9de501e2b0ca25c00fa252 (diff)
downloadportage-4789539e20f4a89b60ea28729c9c5920a71a2fc2.tar.gz
portage-4789539e20f4a89b60ea28729c9c5920a71a2fc2.tar.bz2
portage-4789539e20f4a89b60ea28729c9c5920a71a2fc2.zip
Make metadata_overlay use the autocommits attribute of the underlying database.
svn path=/main/trunk/; revision=5357
-rw-r--r--pym/cache/metadata_overlay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/cache/metadata_overlay.py b/pym/cache/metadata_overlay.py
index fc99b4011..914285b3d 100644
--- a/pym/cache/metadata_overlay.py
+++ b/pym/cache/metadata_overlay.py
@@ -12,7 +12,6 @@ from cache.metadata import database as db_ro
class database(template.database):
- autocommits = True
serialize_eclasses = False
def __init__(self, location, label, auxdbkeys, db_rw=db_rw, db_ro=db_ro,
@@ -20,6 +19,7 @@ class database(template.database):
super(database, self).__init__(location, label, auxdbkeys)
self.db_rw = db_rw(location, label, auxdbkeys, **config)
self.commit = self.db_rw.commit
+ self.autocommits = self.db_rw.autocommits
if isinstance(db_ro, type):
ro_config = config.copy()
ro_config["readonly"] = True