For forward compatibility, make metadata_overlay pass any additional positional and...
authorZac Medico <zmedico@gentoo.org>
Sat, 23 Dec 2006 20:09:57 +0000 (20:09 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 23 Dec 2006 20:09:57 +0000 (20:09 -0000)
svn path=/main/trunk/; revision=5368

pym/cache/metadata_overlay.py

index 914285b3d2d54d883023a8250767b36d9ec72567..d82ba96f8b7542c889a5fab0ac6951aad1f08b76 100644 (file)
@@ -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