]> code.ossystems Code Review - openembedded-core.git/commitdiff
utils.bbclass: fix KeyError exception
authorChen Qi <Qi.Chen@windriver.com>
Fri, 24 Aug 2018 03:46:40 +0000 (11:46 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Aug 2018 06:53:09 +0000 (07:53 +0100)
The following statement was accidently removed. Add it back.

  values['ml'] = ['']

This patch fixes the following error.

  Exception: KeyError: 'ml'

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/utils.bbclass

index e12e93af24a4318fed4f5e7d6bde4f2cc011c4ee..0016e5c4e6d5e91d0e9a550368e80ce8896fd598 100644 (file)
@@ -360,6 +360,7 @@ def all_multilib_tune_list(vars, d):
     values = {}
     for v in vars:
         values[v] = []
+    values['ml'] = ['']
 
     variants = (d.getVar("MULTILIB_VARIANTS") or "").split() + ['']
     for item in variants: