]> code.ossystems Code Review - openembedded-core.git/commit
icecc.bbclass: fix syntax error
authorMartin Jansa <Martin.Jansa@gmail.com>
Tue, 22 Feb 2022 13:26:57 +0000 (14:26 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Feb 2022 15:24:48 +0000 (15:24 +0000)
commit31be8f47502681d5621af032bca216c22f78fb84
tree804931c31b304da47b9dbd8efb8de529ea1e9529
parent187ac1ea0a701a5ba9ec92f6aa32f2a67600a584
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)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/icecc.bbclass