From ba8538b3a9ecdd8d77eecd277b913c9cf96facd1 Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Wed, 29 Feb 2012 22:15:28 +0800 Subject: runqueue.py: initialize rqexe at RunQueue's init function Sometimes user stops the build before runqueue is established, for example, at the stage of running add_unresolved() function. This will cause RunQueue to use rqexe field in finish_runqeue() before initialized. This will cause endless print of "Running idle function" if use process server. This commit initialize rqexe variable in RunQueue's init function, and add a judgement in finish_runqueue(). (Bitbake rev: 59f817723172092a87738c79f555e605f55ea375) Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bitbake/lib/bb/runqueue.py') diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index d4b2cd49aa..f1883d78fe 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -779,6 +779,8 @@ class RunQueue: # For disk space monitor self.dm = monitordisk.diskMonitor(cfgData) + self.rqexe = None + def check_stamps(self): unchecked = {} current = [] @@ -996,6 +998,9 @@ class RunQueue: return retval def finish_runqueue(self, now = False): + if not self.rqexe: + return + if now: self.rqexe.finish_now() else: -- cgit v1.2.3-54-g00ecf