diff options
-rw-r--r-- | bitbake/lib/bb/build.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 0d0100a064..4631abdde5 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -872,6 +872,12 @@ def preceedtask(task, with_recrdeptasks, d): | |||
872 | that this may lead to the task itself being listed. | 872 | that this may lead to the task itself being listed. |
873 | """ | 873 | """ |
874 | preceed = set() | 874 | preceed = set() |
875 | |||
876 | # Ignore tasks which don't exist | ||
877 | tasks = d.getVar('__BBTASKS', False) | ||
878 | if task not in tasks: | ||
879 | return preceed | ||
880 | |||
875 | preceed.update(d.getVarFlag(task, 'deps') or []) | 881 | preceed.update(d.getVarFlag(task, 'deps') or []) |
876 | if with_recrdeptasks: | 882 | if with_recrdeptasks: |
877 | recrdeptask = d.getVarFlag(task, 'recrdeptask') | 883 | recrdeptask = d.getVarFlag(task, 'recrdeptask') |