Make portdbapi define self.settings, for conformity with other dbapi classes.
authorZac Medico <zmedico@gentoo.org>
Fri, 26 Jun 2009 22:43:39 +0000 (22:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 26 Jun 2009 22:43:39 +0000 (22:43 -0000)
svn path=/main/trunk/; revision=13701

pym/portage/dbapi/porttree.py

index ff16a9441d3dac9eb3394c2b30f8a93cdb227fe3..e55db14871d3320e34cce5653b5282d45388fe4f 100644 (file)
@@ -119,6 +119,8 @@ class portdbapi(dbapi):
                else:
                        from portage import settings
                        self.mysettings = config(clone=settings)
+               # Define self.settings, for conformity with other dbapi classes.
+               self.settings = self.mysettings
                self._iuse_implicit = self.mysettings._get_implicit_iuse()
                self._categories = self.mysettings.categories
                # This is strictly for use in aux_get() doebuild calls when metadata