]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cve-check: slightly more verbose warning when adding the same package twice
authorRoss Burton <ross.burton@arm.com>
Mon, 23 Oct 2023 17:38:22 +0000 (18:38 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Oct 2023 14:28:23 +0000 (15:28 +0100)
Occasionally the cve-check tool will warn that it is adding the same
package twice.  Knowing what this package is might be the first step
towards understanding where this message comes from.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/cve_check.py

index 3979d521d10d2b579797ea84af0e7c7f83fe0118..c0ab22d25ea751bc7dadc748730be857ba4065b2 100644 (file)
@@ -172,7 +172,7 @@ def cve_check_merge_jsons(output, data):
 
     for product in output["package"]:
         if product["name"] == data["package"][0]["name"]:
-            bb.error("Error adding the same package twice")
+            bb.error("Error adding the same package %s twice" % product["name"])
             return
 
     output["package"].append(data["package"][0])