diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-10 21:49:12 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-12 14:41:32 +0100 |
commit | 36e81a844b53fed949bcf8cfc37d220c2d078a03 (patch) | |
tree | 33363cf750a2f1e4957b9052cc6979b18e3f6a5e | |
parent | e4c1c8c92e4f47b69a9d7dcccb32ee3bb1ad7d18 (diff) | |
download | ast2050-yocto-poky-36e81a844b53fed949bcf8cfc37d220c2d078a03.zip ast2050-yocto-poky-36e81a844b53fed949bcf8cfc37d220c2d078a03.tar.gz |
bitbake/cooker: Make sure no locks are held before we start forking workers
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index ad1d602..3f6f6ef 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) |