diff mbox series

[v2,6/8] support/scripts/pkg-stats: add package count to stats

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

Commit Message

Heiko Thiery Jan. 5, 2020, 9:23 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 ace092cf3b..8ec3204d9a 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -407,6 +407,7 @@  def check_package_latest_version(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