summaryrefslogtreecommitdiffstats
path: root/lib/bb/taskdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-14 10:14:22 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-15 16:47:53 +0000
commit90a4805e4e770a433b4394ea99792731e9a4b546 (patch)
treed3e6020f6641a92ee9ee0f5fcf0e72ad27bf28b9 /lib/bb/taskdata.py
parent3f507ff8bc467fba936cf3f31bb8ea8e02f168e8 (diff)
downloadbitbake-90a4805e4e770a433b4394ea99792731e9a4b546.tar.gz
taskdata: Fix traceback issue with missing provider
If there is a missing provider and we're using "-k" mode alongside "-w", we could get a traceback since there was no provider. Add tests to avoid this. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/taskdata.py')
-rw-r--r--lib/bb/taskdata.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/taskdata.py b/lib/bb/taskdata.py
index 6e4d149e5..9ae52d77d 100644
--- a/lib/bb/taskdata.py
+++ b/lib/bb/taskdata.py
@@ -642,7 +642,9 @@ class TaskData:
if prefix and not name.startswith(prefix):
continue
if self.have_build_target(name):
- provmap[name] = self.fn_index[self.get_provider(name)[0]]
+ provider = self.get_provider(name)
+ if provider:
+ provmap[name] = self.fn_index[provider[0]]
return provmap
def dump_data(self):