From patchwork Mon Mar 2 14:50:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1247690 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=EREIaVKb; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48WNPZ4QxXz9sPK for ; Tue, 3 Mar 2020 01:51:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 04EBD859D5; Mon, 2 Mar 2020 14:51:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TqR0uDBqZRlr; Mon, 2 Mar 2020 14:51:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E8083858D2; Mon, 2 Mar 2020 14:51:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3DF461BF39F for ; Mon, 2 Mar 2020 14:51:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 389FA8589C for ; Mon, 2 Mar 2020 14:51:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eETw9690xBoM for ; Mon, 2 Mar 2020 14:51:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3D2B78587E for ; Mon, 2 Mar 2020 14:50:41 +0000 (UTC) Received: by mail-wm1-f43.google.com with SMTP id a25so87215wmm.0 for ; Mon, 02 Mar 2020 06:50:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rkTAawy7/kWxgXZximMLfAI1cRIUjgf/w2vu+xvEgjs=; b=EREIaVKbSP5y0d5OD1b+BF3f1ACXbCtmWSoSDhrWbf1erFjWnxbjazdSJiAwdIH3Le avsLalTDSEnPaRbcIf4ZfG4/g7nOEWFOchZvc3IZiLnX+XtbKUzwNnZ9xSkP/tpEPmmZ ZejZ77MlWIVOjqdL7uWpejMRi+Ni22sDmY3e2Prg7pjlEPymZqNKrdn8TOlMfMm3UAAZ RlW8lEQmXvhnOSvjl/Nv6UtLEVE1suCgXp2S7IpgyYV9vF4eeyY7mzbcenzVY3U4nHz5 3U1RGgRh2ppifeAwje+9Jmsu5OvlIpYURJ/7AS8rsqph0H+ouTPopu2uiMGbbulC8xJw vC6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rkTAawy7/kWxgXZximMLfAI1cRIUjgf/w2vu+xvEgjs=; b=YoZ1b4tkIhdTzb+yBX06XV4P3lL5jiTYAJ9LkMIwtAj7p/iOA2v9H1nnx/zbQ3hVhg Y+YucCTvyPiCFD8v7SfLbWfECggyioD62qun+vOkLHyB/Q4PAfhdqx4g9tCXimqbimRM mTr0bLC7vmMqCQIn4b/ym7cFLOKkS5t/GQ8z5q9rCUsvGNign17BWgxmhOQdpvyPqUXg YAeagD0Pf19jQ3MGxV+5eSD8S0WEpPLqMqrgFjQpu+EWoTotqqyRi9JzezobEgFwulQI SfJfVa7r3QTBAedjC785yy0JEvMS4yVPDXr2cZPZPGbKvDCpIiw1QRUBiiWEK9thf2GG AsYw== X-Gm-Message-State: APjAAAWZ8MyrsuK2pG8BEzJ0e0clg3/XDochNnWAaiw1fa1w3Y4dW+1J GKpRtDc6TL1GisSYjBgxENClUaCj X-Google-Smtp-Source: APXvYqxfkefmWAdIP7PhBS6j62SIltCzk160GXFo8hF1rA4XZSQ4KQGlZWnJavVQ7KVjCfTd8fPW8Q== X-Received: by 2002:a7b:c957:: with SMTP id i23mr20509196wml.174.1583160639427; Mon, 02 Mar 2020 06:50:39 -0800 (PST) Received: from hthiery01.sab.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id h17sm29648355wro.52.2020.03.02.06.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 06:50:38 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Mon, 2 Mar 2020 15:50:08 +0100 Message-Id: <20200302145013.9574-7-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200302145013.9574-1-heiko.thiery@gmail.com> References: <20200302145013.9574-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v4 06/12] support/scripts/pkg-stats: add package count to stats X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Thiery , Thomas Petazzoni , Titouan Christophe Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Heiko Thiery --- support/scripts/pkg-stats | 1 + 1 file changed, 1 insertion(+) diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 47f7507540..2847cb82f3 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -549,6 +549,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