summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@bmw.de>2019-07-17 12:08:37 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-18 12:16:19 +0100
commit9f6dcdaf96ecad8de945859fac6487664e4526c1 (patch)
treebf5badcacf573d9d1a9fb151de9734adf5dce175 /meta/classes
parentaab3b7511cf78d9e1db8e4c0f88793a0d3a959bd (diff)
downloadopenembedded-core-contrib-9f6dcdaf96ecad8de945859fac6487664e4526c1.tar.gz
cve-check.bbclass: initialize to_append
Fixes build failure with core-image-minimal: Exception: UnboundLocalError: local variable 'to_append' referenced before assignment (From OE-Core rev: 270ac00cb43d0614dfe1c95f960c76e9e5fa20d4) Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cve-check.bbclass1
1 files changed, 1 insertions, 0 deletions
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: