From 90a4805e4e770a433b4394ea99792731e9a4b546 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 14 Feb 2016 10:14:22 +0000 Subject: [PATCH] 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 --- lib/bb/taskdata.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bb/taskdata.py b/lib/bb/taskdata.py index 6e4d149e5af..9ae52d77dad 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): -- 2.47.3