[bitbake-devel] [PATCH] bitbake/runqueue: Ensure finish_now() sets the runqueue state consistently
Robert Yang
liezhi.yang at windriver.com
Sun Feb 26 09:41:34 UTC 2012
Hi Richard:
I have included this patch to the "V5 Disk space monitoring" as you suggested,
I have tested it, it worked well.
// Robert
On 02/26/2012 12:02 AM, Richard Purdie wrote:
> If we call finish_now(True), rq.state is not updated to match. This
> makes the behaviour of finish_now(False) and finish_now(True) consistent
> so both leave rq.state consistently.
>
> Signed-off-by: Richard Purdie<richard.purdie at linuxfoundation.org>
>
> diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
> index c24841f..26a0f85 100644
> --- a/bitbake/lib/bb/runqueue.py
> +++ b/bitbake/lib/bb/runqueue.py
> @@ -1060,6 +1060,13 @@ class RunQueueExecute:
> for pipe in self.build_pipes:
> self.build_pipes[pipe].read()
>
> + if len(self.failed_fnids) != 0:
> + self.rq.state = runQueueFailed
> + return
> +
> + self.rq.state = runQueueComplete
> + return
> +
> def finish(self):
> self.rq.state = runQueueCleanUp
>
>
>
>
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel
>
More information about the bitbake-devel
mailing list