diff mbox series

[v5,06/12] support/scripts/pkg-stats: add package count to stats

Message ID 20200307075633.7514-7-heiko.thiery@gmail.com
State Accepted
Headers show
Series pkg-stats json output improvements | expand

Commit Message

Heiko Thiery March 7, 2020, 7:56 a.m. UTC
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
---
 support/scripts/pkg-stats | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 0d4bb13196..0e7d60bdbb 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -552,6 +552,7 @@  def check_package_cves(nvd_path, packages):
 
 def calculate_stats(packages):
     stats = defaultdict(int)
+    stats['packages'] = len(packages)
     for pkg in packages:
         # If packages have multiple infra, take the first one. For the
         # vast majority of packages, the target and host infra are the