Initialize the match cache in the bindbapi constructor.
authorZac Medico <zmedico@gentoo.org>
Sun, 10 Dec 2006 09:52:16 +0000 (09:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 10 Dec 2006 09:52:16 +0000 (09:52 -0000)
svn path=/main/trunk/; revision=5254

pym/portage.py

index 67debcd5f2e37da08a335910fba114c892c22ef9..96a1ca4664b56df0195a24d52efd1e583027a2f9 100644 (file)
@@ -4467,6 +4467,7 @@ class bindbapi(fakedbapi):
                if settings is None:
                        settings = globals()["settings"]
                self.settings = settings
+               self._match_cache = {}
 
        def match(self, *pargs, **kwargs):
                if self.bintree and not self.bintree.populated: