treewalk: reset cloned config instances
authorZac Medico <zmedico@gentoo.org>
Wed, 25 May 2011 05:09:43 +0000 (22:09 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 25 May 2011 05:09:43 +0000 (22:09 -0700)
pym/portage/dbapi/vartree.py

index 159871bc3195885abc5f8cb240b3cedb64e2c3c7..4173283c034d749514e1c720e3d4939a8ed43139 100644 (file)
@@ -3073,6 +3073,7 @@ class dblink(object):
                        # we need it to have private ${T} etc... for things like elog.
                        settings_clone = config(clone=self.settings)
                        settings_clone.pop("PORTAGE_BUILDIR_LOCKED", None)
+                       settings_clone.reset()
                        others_in_slot.append(dblink(self.cat, catsplit(cur_cpv)[1],
                                settings=settings_clone,
                                vartree=self.vartree, treetype="vartree",