diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-14 10:14:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-15 16:48:12 +0000 |
commit | a9223e20d1c94d785af53e4b8c191d865bb0fa12 (patch) | |
tree | c87aa807f684c0dd3c736159e30598dd89a78ecc /bitbake/lib | |
parent | 7593756cbb28bb3c09f6192d22b73ff8b6572638 (diff) | |
download | poky-a9223e20d1c94d785af53e4b8c191d865bb0fa12.tar.gz |
bitbake: 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.
(Bitbake rev: 90a4805e4e770a433b4394ea99792731e9a4b546)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/taskdata.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py index 6e4d149e5a..9ae52d77da 100644 --- a/bitbake/lib/bb/taskdata.py +++ b/bitbake/lib/bb/taskdata.py | |||
@@ -642,7 +642,9 @@ class TaskData: | |||
642 | if prefix and not name.startswith(prefix): | 642 | if prefix and not name.startswith(prefix): |
643 | continue | 643 | continue |
644 | if self.have_build_target(name): | 644 | if self.have_build_target(name): |
645 | provmap[name] = self.fn_index[self.get_provider(name)[0]] | 645 | provider = self.get_provider(name) |
646 | if provider: | ||
647 | provmap[name] = self.fn_index[provider[0]] | ||
646 | return provmap | 648 | return provmap |
647 | 649 | ||
648 | def dump_data(self): | 650 | def dump_data(self): |