瀏覽代碼

support/scripts/pkg-stats: add package count to stats

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 0e267518cbd13747726fd946f6430e4bdcb1c121)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Heiko Thiery 5 年之前
父節點
當前提交
3a8dd28bc5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      support/scripts/pkg-stats

+ 1 - 0
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