[OE-core] [PATCH 2/2] cve-check.bbclass: initialize to_append
Mikko Rapeli
mikko.rapeli at bmw.de
Wed Jul 17 09:08:37 UTC 2019
Fixes build failure with core-image-minimal:
Exception: UnboundLocalError: local variable 'to_append' referenced before assignment
Signed-off-by: Mikko Rapeli <mikko.rapeli at bmw.de>
---
meta/classes/cve-check.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass
index ffd6243..9a31b3c 100644
--- a/meta/classes/cve-check.bbclass
+++ b/meta/classes/cve-check.bbclass
@@ -204,6 +204,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:
--
1.9.1
More information about the Openembedded-core
mailing list