diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-10 13:13:08 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-10 13:24:04 +0000 |
commit | cd382f95461454fecae3d9811a9f2386626e5418 (patch) | |
tree | 9dd6b5786ce5ba361fd5824b8417c1c0c18461ef /bitbake/lib | |
parent | 2c2d160c889ac03e47f58219375d558b8b9ce358 (diff) | |
download | openembedded-core-cd382f95461454fecae3d9811a9f2386626e5418.tar.gz openembedded-core-cd382f95461454fecae3d9811a9f2386626e5418.tar.bz2 openembedded-core-cd382f95461454fecae3d9811a9f2386626e5418.tar.xz openembedded-core-cd382f95461454fecae3d9811a9f2386626e5418.zip |
runqueue.py: Drop unneeded import and improve quieterrors handling as per upstream bitbake
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 054191b8c..2b37619ae 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -25,7 +25,6 @@ Handles preparation and execution of a queue of tasks import copy import os import sys -import subprocess import signal import stat import fcntl @@ -1055,7 +1054,7 @@ class RunQueueExecute: self.rq.state = runQueueComplete return - def fork_off_task(self, fn, task, taskname): + def fork_off_task(self, fn, task, taskname, quieterrors=False): the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data) env = bb.data.export_vars(the_data) @@ -1115,7 +1114,7 @@ class RunQueueExecute: #newso = open(logout, 'w') #os.dup2(newso.fileno(), sys.stdout.fileno()) #os.dup2(newso.fileno(), sys.stderr.fileno()) - if taskname.endswith("_setscene"): + if quieterrors: the_data.setVarFlag(taskname, "quieterrors", "1") bb.data.setVar("BB_WORKERCONTEXT", "1", the_data) @@ -1569,6 +1568,9 @@ class RunQueueExecuteScenequeue(RunQueueExecute): self.rq.state = runQueueRunInit return True + def fork_off_task(self, fn, task, taskname): + return RunQueueExecute.fork_off_task(self, fn, task, taskname, quieterrors=True) + class TaskFailure(Exception): """ Exception raised when a task in a runqueue fails |