From 36e81a844b53fed949bcf8cfc37d220c2d078a03 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 10 Aug 2010 21:49:12 +0100 Subject: bitbake/cooker: Make sure no locks are held before we start forking workers Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bitbake/lib/bb/cooker.py') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index ad1d6023f..3f6f6ef0b 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -664,6 +664,9 @@ class BBCooker: buildname = bb.data.getVar("BUILDNAME", self.configuration.data) bb.event.fire(bb.event.BuildStarted(buildname, [item]), self.configuration.event_data) + # Clear locks + bb.fetch.persistent_database_connection = {} + # Execute the runqueue runlist = [[item, "do_%s" % task]] @@ -742,6 +745,9 @@ class BBCooker: runlist.append([k, "do_%s" % task]) taskdata.add_unresolved(localdata, self.status) + # Clear locks + bb.fetch.persistent_database_connection = {} + rq = bb.runqueue.RunQueue(self, self.configuration.data, self.status, taskdata, runlist) self.server.register_idle_function(buildTargetsIdle, rq) -- cgit v1.2.3