From cd382f95461454fecae3d9811a9f2386626e5418 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 10 Jan 2011 13:13:08 +0000 Subject: runqueue.py: Drop unneeded import and improve quieterrors handling as per upstream bitbake Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb/runqueue.py') 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 -- cgit v1.2.3