Skip to content
Commit 68364a4b authored by Thomas Petazzoni's avatar Thomas Petazzoni
Browse files

support/scripts/pkg-stats: fix the status reporting of CVEs



Since commit bd665d18
("support/scripts/pkg-stats: improve rendering of CVE information"),
we have better reporting of CVE related information, based on
pkg.status['cve']. However, this commit broke pkg-stats when the
--nvd-path option is not passed, and therefore no CVE information is
available.

This commit fixes that, by making use of the is_status_ok(),
is_status_error() and is_status_na() methods recently introduced.

Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@bootlin.com>
parent 7f83ad74
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment