]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: prevent infinite loop when finding task dependencies
authorElliot Smith <elliot.smith@intel.com>
Fri, 29 Jul 2016 11:25:46 +0000 (12:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 23:08:17 +0000 (00:08 +0100)
commit88c471c7e5995abb5bca62990b91650277b6c926
treedde447b5ce463c1e20b7545351e149142114bb73
parent5b016338478d784fd048ba2baae121c3e558090c
toaster: prevent infinite loop when finding task dependencies

Toaster occasionally records a task which depends on itself.
This causes a problem when trying to display that task if it
is "covered" by itself, as the code does the following: for
task A, find a task B which covers A; then, recursively
find the task which covers B etc. If B == A, this loop becomes
infinite and never terminates.

To prevent this, add the condition that, when finding a task B
which covers A, don't allow B == A.

[YOCTO #9952]

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
lib/toaster/toastergui/views.py