From 23ce7821a34a3375d94efa1a06228cc7e01dff45 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 21 Feb 2007 20:15:13 +0000 Subject: bitbake: merge upstream fixes and fix bug in recrdeptask handling git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1282 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- bitbake/lib/bb/runqueue.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 2ef2670da..ec94b0f8b 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -152,9 +152,9 @@ class RunQueue: # Resolve Recursive Runtime Depends # Also includes all Build Depends (and their runtime depends) if 'recrdeptask' in task_deps and taskData.tasks_name[task] in task_deps['recrdeptask']: - dep_seen = [] - rdep_seen = [] for taskname in task_deps['recrdeptask'][taskData.tasks_name[task]].split(): + dep_seen = [] + rdep_seen = [] for depid in taskData.depids[fnid]: add_recursive_build(depid) for rdepid in taskData.rdepids[fnid]: @@ -203,6 +203,9 @@ class RunQueue: if targetid not in taskData.build_targets: continue + if targetid in taskData.failed_deps: + continue + fnid = taskData.build_targets[targetid][0] # Remove stamps for targets if force mode active @@ -211,9 +214,6 @@ class RunQueue: bb.msg.note(2, bb.msg.domain.RunQueue, "Remove stamp %s, %s" % (target[1], fn)) bb.build.del_stamp(target[1], dataCache, fn) - if targetid in taskData.failed_deps: - continue - if fnid in taskData.failed_fnids: continue @@ -347,7 +347,7 @@ class RunQueue: taskData.fail_fnid(fnid) failures = failures + 1 self.reset_runqueue() - self.prepare_runqueue(cfgData, dataCache, taskData, runlist) + self.prepare_runqueue(cooker, cfgData, dataCache, taskData, runlist) def execute_runqueue_internal(self, cooker, cfgData, dataCache, taskData): """ @@ -369,7 +369,7 @@ class RunQueue: if len(self.runq_fnid) == 0: # nothing to do - return + return [] def sigint_handler(signum, frame): raise KeyboardInterrupt -- cgit v1.2.3