mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
icecc.bbclass: fix syntax error
'class' is already taken as keyword and python doesn't like this:
ERROR: Error in compiling python function in oe-core/meta/classes/icecc.bbclass, line 151:
The code lines resulting in this error were:
0020: check_pn = set([pn, bpn])
0021:
0022: class_disable = (d.getVar('ICECC_CLASS_DISABLE') or "").split()
0023:
*** 0024: for class in class_disable:
0025: if bb.data.inherits_class(class, d):
0026: bb.debug(1, "%s: class %s found in disable, disable icecc" % (pn, class))
0027: return "no"
0028:
SyntaxError: invalid syntax (icecc.bbclass, line 151)
(From OE-Core rev: 31be8f47502681d5621af032bca216c22f78fb84)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6c23bd5c81
commit
d03235b2c2
@@ -148,9 +148,9 @@ def use_icecc(bb,d):
|
||||
|
||||
class_disable = (d.getVar('ICECC_CLASS_DISABLE') or "").split()
|
||||
|
||||
for class in class_disable:
|
||||
if bb.data.inherits_class(class, d):
|
||||
bb.debug(1, "%s: class %s found in disable, disable icecc" % (pn, class))
|
||||
for bbclass in class_disable:
|
||||
if bb.data.inherits_class(bbclass, d):
|
||||
bb.debug(1, "%s: bbclass %s found in disable, disable icecc" % (pn, bbclass))
|
||||
return "no"
|
||||
|
||||
disabled_recipes = (d.getVar('ICECC_RECIPE_DISABLE') or "").split()
|
||||
|
||||
Reference in New Issue
Block a user