diff options
author | Mikko Rapeli <mikko.rapeli@bmw.de> | 2019-07-17 12:08:37 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-18 12:16:19 +0100 |
commit | 9f6dcdaf96ecad8de945859fac6487664e4526c1 (patch) | |
tree | bf5badcacf573d9d1a9fb151de9734adf5dce175 /meta | |
parent | aab3b7511cf78d9e1db8e4c0f88793a0d3a959bd (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/cve-check.bbclass | 1 |
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): | |||
207 | elif cve in patched_cves: | 207 | elif cve in patched_cves: |
208 | bb.note("%s has been patched" % (cve)) | 208 | bb.note("%s has been patched" % (cve)) |
209 | else: | 209 | else: |
210 | to_append = False | ||
210 | if (operator_start == '=' and pv == version_start): | 211 | if (operator_start == '=' and pv == version_start): |
211 | cves_unpatched.append(cve) | 212 | cves_unpatched.append(cve) |
212 | else: | 213 | else: |