瀏覽代碼

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>
Richard Purdie 9 年之前
父節點
當前提交
a9223e20d1
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      bitbake/lib/bb/taskdata.py

+ 3 - 1
bitbake/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):