[oe-commits] [openembedded-core] 18/49: cve-check.bbclass: initialize to_append

git at git.openembedded.org git at git.openembedded.org
Wed Nov 6 20:45:05 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch sumo-next
in repository openembedded-core.

commit 45758c900ff738e58fd37ff809960965867d79f8
Author: Mikko Rapeli <mikko.rapeli at bmw.de>
AuthorDate: Wed Nov 6 17:37:31 2019 +0200

    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 at bmw.de>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 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 19ac48c..2a13816 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:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list