From: Marta Rybczynska Date: Fri, 3 Jun 2022 08:56:14 +0000 (+0200) Subject: cve-check: fix return type in check_cves X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3945 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f86393c93dec47b24e837d0c4c5761a716ecdbb6;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cve-check: fix return type in check_cves Make empty return types in check_cvs the same for all code paths. Signed-off-by: Marta Rybczynska Signed-off-by: Richard Purdie --- diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 0c5f40b78dd..1b4910f7374 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -264,7 +264,7 @@ def check_cves(d, patched_cves): products = d.getVar("CVE_PRODUCT").split() # If this has been unset then we're not scanning for CVEs here (for example, image recipes) if not products: - return ([], [], [], {}) + return ([], [], [], []) pv = d.getVar("CVE_VERSION").split("+git")[0] # If the recipe has been skipped/ignored we return empty lists