From: Ola x Nilsson Date: Fri, 12 Jan 2024 15:14:03 +0000 (+0100) Subject: insane.bbclass: Python code cleanup in check_32bit_symbols X-Git-Tag: uninative-4.4~475 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67b06035326048323f972107f66eb50cf74def0b;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git insane.bbclass: Python code cleanup in check_32bit_symbols Signed-off-by: Ola x Nilsson Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index f6c947dafb7..ec76f9a5e31 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass @@ -514,9 +514,9 @@ def check_32bit_symbols(path, packagename, d, elf, messages): """ Check that ELF files do not use any 32 bit time APIs from glibc. """ - thirtytwo_bit_time_archs = set(('arm','armeb','mipsarcho32','powerpc','x86')) + thirtytwo_bit_time_archs = {'arm','armeb','mipsarcho32','powerpc','x86'} overrides = set(d.getVar('OVERRIDES').split(':')) - if not(thirtytwo_bit_time_archs & overrides): + if not (thirtytwo_bit_time_archs & overrides): return import re @@ -1571,7 +1571,7 @@ do_unpack[postfuncs] += "do_qa_unpack" python () { import re - + tests = d.getVar('ALL_QA').split() if "desktop" in tests: d.appendVar("PACKAGE_DEPENDS", " desktop-file-utils-native")