From: Zac Medico Date: Sat, 23 Dec 2006 00:21:15 +0000 (-0000) Subject: Make metadata_overlay use the autocommits attribute of the underlying database. X-Git-Tag: v2.1.2~240 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4789539e20f4a89b60ea28729c9c5920a71a2fc2;p=portage.git Make metadata_overlay use the autocommits attribute of the underlying database. svn path=/main/trunk/; revision=5357 --- 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