summaryrefslogtreecommitdiffstats
path: root/pym/cache
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-23 20:09:57 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-23 20:09:57 +0000
commit5cdd59f375042afb60d1e9ed2d1e46746ef31be6 (patch)
treefc933a9f18786934795637e4998fc39c1ca1f360 /pym/cache
parent33c29d8c799546f746bf6fbf379e915ae10cdcc8 (diff)
downloadportage-5cdd59f375042afb60d1e9ed2d1e46746ef31be6.tar.gz
portage-5cdd59f375042afb60d1e9ed2d1e46746ef31be6.tar.bz2
portage-5cdd59f375042afb60d1e9ed2d1e46746ef31be6.zip
For forward compatibility, make metadata_overlay pass any additional positional and keyword parameters into the super constructor.
svn path=/main/trunk/; revision=5368
Diffstat (limited to 'pym/cache')
-rw-r--r--pym/cache/metadata_overlay.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/cache/metadata_overlay.py b/pym/cache/metadata_overlay.py
index 914285b3d..d82ba96f8 100644
--- a/pym/cache/metadata_overlay.py
+++ b/pym/cache/metadata_overlay.py
@@ -15,8 +15,11 @@ class database(template.database):
serialize_eclasses = False
def __init__(self, location, label, auxdbkeys, db_rw=db_rw, db_ro=db_ro,
- **config):
- super(database, self).__init__(location, label, auxdbkeys)
+ *args, **config):
+ super_config = config.copy()
+ super_config.pop("gid", None)
+ super(database, self).__init__(location, label, auxdbkeys,
+ *args, **super_config)
self.db_rw = db_rw(location, label, auxdbkeys, **config)
self.commit = self.db_rw.commit
self.autocommits = self.db_rw.autocommits