mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 21:32:13 +02:00
cve-check: do not parse error output
Sometimes there are control messages in cve-check-tool printed to stderr. These lead to parsing error and thus failed build. This can happen for instance when cve database needs to be refreshed during build. (From OE-Core rev: 6d8a17f4c50be292990e37de65630a6b84466ee6) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1a146e5885
commit
7e9a61cab8
@@ -176,7 +176,7 @@ def check_cves(d, patched_cves):
|
||||
f.write("%s,%s,%s," % (bpn, pv, cves))
|
||||
cmd.append(faux)
|
||||
|
||||
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT).decode("utf-8")
|
||||
output = subprocess.check_output(cmd).decode("utf-8")
|
||||
bb.debug(2, "Output of command %s:\n%s" % ("\n".join(cmd), output))
|
||||
except subprocess.CalledProcessError as e:
|
||||
bb.warn("Couldn't check for CVEs: %s (output %s)" % (e, e.output))
|
||||
|
||||
Reference in New Issue
Block a user