Skip to contentSkip to conversation

utils.bbclass: fix KeyError exception

PATCH In review Chen Qi 2 participants 3 messages Aug 24, 2018

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover utils.bbclass: fix KeyError exception

*** BLURB HERE ***
The following changes since commit bd374216048581bcb3ea54d69998342525cf2da5:

util-linux: upgrade 2.32 -> 2.32.1 (2018-08-23 18:02:23 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/keyerror
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/keyerror

Chen Qi (1):
utils.bbclass: fix KeyError exception

 meta/classes/utils.bbclass | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 utils.bbclass: fix KeyError exception

The following statement was accidently removed. Add it back.

values['ml'] = ['']

This patch fixes the following error.

Exception: KeyError: 'ml'

---
 meta/classes/utils.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/utils.bbclass +1 -0
index e12e93a..0016e5c 100644
@@ -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:
Signature · 1 line
1.9.1
#2 lore raw
Quoted 4 lines · Chen Qi

The following statement was accidently removed. Add it back.

values['ml'] = ['']

Quoted 8 lines

This patch fixes the following error.

Exception: KeyError: 'ml'

---
 meta/classes/utils.bbclass | 1 +
 1 file changed, 1 insertion(+)

Thanks, it was quite nice to wake up and find someone had fixed the bug
I'd accidentally introduced! :)

Cheers,

Richard