From: Mikko Rapeli Date: Wed, 17 Jul 2019 09:08:37 +0000 (+0300) Subject: cve-check.bbclass: initialize to_append X-Git-Tag: uninative-2.7~756 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=270ac00cb43d0614dfe1c95f960c76e9e5fa20d4;p=openembedded-core.git cve-check.bbclass: initialize to_append Fixes build failure with core-image-minimal: Exception: UnboundLocalError: local variable 'to_append' referenced before assignment Signed-off-by: Mikko Rapeli Signed-off-by: Richard Purdie --- diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 19ac48cfd4..2a1381604a 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -207,6 +207,7 @@ def check_cves(d, patched_cves): elif cve in patched_cves: bb.note("%s has been patched" % (cve)) else: + to_append = False if (operator_start == '=' and pv == version_start): cves_unpatched.append(cve) else: