treewalk: fix PORTAGE_BUILDIR_LOCKED state
authorZac Medico <zmedico@gentoo.org>
Tue, 24 May 2011 10:40:23 +0000 (03:40 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 24 May 2011 10:40:23 +0000 (03:40 -0700)
This fixes breakage from commit
f0f1bbe8fa9d3f698cbe529d2a11eec1ce437119.

pym/portage/dbapi/vartree.py

index a9d2d147cbcdd825fe9b57f4a61a47f841effe28..5aec973ebaba164e9feeee370167b780cfe9da5a 100644 (file)
@@ -3063,8 +3063,10 @@ class dblink(object):
                for cur_cpv in slot_matches:
                        # Clone the config in case one of these has to be unmerged since
                        # 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)
                        others_in_slot.append(dblink(self.cat, catsplit(cur_cpv)[1],
-                               settings=config(clone=self.settings),
+                               settings=settings_clone,
                                vartree=self.vartree, treetype="vartree",
                                scheduler=self._scheduler, pipe=self._pipe))