FakeVartree: disable match wrapper if necessary v2.2.0_alpha66
authorZac Medico <zmedico@gentoo.org>
Mon, 10 Oct 2011 19:33:04 +0000 (12:33 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 10 Oct 2011 19:33:04 +0000 (12:33 -0700)
pym/_emerge/FakeVartree.py

index 140208f528bac3ab8b2abf3720be6489afabe56d..ddec7c5046c73ed66293e7ec7b2dde1b6e2e12af 100644 (file)
@@ -62,10 +62,10 @@ class FakeVartree(vartree):
                # metadata.  This ensures that the vardb lock is released ASAP, without
                # being delayed in case cache generation is triggered.
                self._aux_get = self.dbapi.aux_get
+               self._match = self.dbapi.match
                if dynamic_deps:
                        self.dbapi.aux_get = self._aux_get_wrapper
-               self._match = self.dbapi.match
-               self.dbapi.match = self._match_wrapper
+                       self.dbapi.match = self._match_wrapper
                self._aux_get_history = set()
                self._portdb_keys = ["EAPI", "DEPEND", "RDEPEND", "PDEPEND"]
                self._portdb = portdb