support/scripts/pkg-stats: add is_actual_package() and rework has_valid_infra()
authorMatthew Weber <Matthew.Weber@collins.com>
Wed, 19 May 2021 02:46:37 +0000 (21:46 -0500)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 19 May 2021 08:14:31 +0000 (10:14 +0200)
commit9368f3f23d2e86084018811b2df293d5e129e4ed
tree312f3c0b9dba1cf738a1d62993bda17d0ed7392a
parent9b83bb13826ac3c34e6fb67a5092d94d98ca6a5d
support/scripts/pkg-stats: add is_actual_package() and rework has_valid_infra()

has_valid_infra() is incorrectly named; it probably should be named
is_actual_package(), and has_valid_infra() would be changed to
actually represent having an actual infra.

This resolves packages reporting as having no valid package infra and
cleans up reporting cases of CPE and CVEs where there isn't a valid version
or package definition outside Buildroot

Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Matthew Weber <matthew.weber@collins.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
support/scripts/pkg-stats