support/scripts/pkg-stats: ignore packages with no valid infra and no version for...
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 4 Dec 2020 15:45:59 +0000 (16:45 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 4 Jan 2021 20:38:35 +0000 (21:38 +0100)
commit78d7521f8230928d5839d1e6ec07d297440fcf02
tree671bbea498d4466a76fc33d3beb5ecb09b466d34
parente3ef352ef677b26d91aad02272468a5048589bb3
support/scripts/pkg-stats: ignore packages with no valid infra and no version for CVE checking

Virtual packages (with in pkg-stats speak have "no valid
infrastructure") and packages that have no version specified cannot be
used for CVE checking. They trigger a bunch of warnings from the CVE
checking code, as it cannot parse their version: they don't have any
version. So instead, we simply skip those packages.

A follow-up commit will improve the reporting to be able to
distinguish those packages from packages that have seen their CVEs
checked and don't have any reported.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/scripts/pkg-stats