From patchwork Sat Mar 7 07:56:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1250844 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.136; helo=silver.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=jbdXnVHi; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48ZGzF5gPkz9sPK for ; Sat, 7 Mar 2020 18:56:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D773E1FE2F; Sat, 7 Mar 2020 07:56:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WSNw2Ri24cKU; Sat, 7 Mar 2020 07:56:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0A57A20356; Sat, 7 Mar 2020 07:56:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id BDCF71BF42C for ; Sat, 7 Mar 2020 07:56:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B8F428769A for ; Sat, 7 Mar 2020 07:56:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qaf8n8cJmbGk for ; Sat, 7 Mar 2020 07:56:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by whitealder.osuosl.org (Postfix) with ESMTPS id 932DF87666 for ; Sat, 7 Mar 2020 07:56:45 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id u9so4688918wml.3 for ; Fri, 06 Mar 2020 23:56:45 -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=wDUwh8agNR86n4MkO1BufE+rk3XvJLtKtPXyHzPGAEM=; b=jbdXnVHilTU7UPTP24G+Isl07ExfD/JZ8NoWVd62x37OOAqX+farT9ZIVfoN3QY0BZ 2ikoyDR8CZ/DuFMyrkZU6nReXRF4QMh9ekevo1SSrWiATnCKX8Czie9VpO35WsCDKjD1 zx50+gqNG1dUsQ+VCWFZ3EtVObhu5KlA7QgCg2rdiXgTnP0orXPle1aVytmFdOtpruhU 6jg1cmI3pTs3jXuJVEFSJG00agRvuM0JxSybNn099sGC2zLHqOFvRX6RnJikekZYXpii I5e0fW5OE0xjWmrLkydJTSf7KKsNVLVYS24O/2Dc2IHutsrNv1g5Qi+fxcjbLUHHJK5H yyrA== 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=wDUwh8agNR86n4MkO1BufE+rk3XvJLtKtPXyHzPGAEM=; b=gUpxDe6bOZBoBtBk4eINS+GUQTYkds1N2YTAqYNbZkC6v7rgfWbF6dLivR+xcruA++ Q9D7QAd/9B7OXOdZMmE5hLj+mSQLsnKdbllSOI/2hspG2nwiBwRv28ydachQoOwL06/d pbljddBmNHvGD0uT1EtKQGLuLPFYi49LwYp8eAJ4slG1451dODwtaEFLFdYmCaNmUaEw wUUoXP2AY7jvsbgfjtTNqM5E7YglFjr/wSiI5rDny5V7kOoBRlRx5gSXchOnmgj223nd IBwLqK7C2h7e2nym/HssqmHFbj6wvziHjCHgsJsZvzdsXoVSaPCstjzYcHEMCdwO8qZa CJaw== X-Gm-Message-State: ANhLgQ0pxBrtRCZOl4dV++ZWK5Rcj+5Fs9LVZ0G4xQE/5Rb8qB2MC/TJ DVtU9JUSpjzrN5D0CAI5p5o1r26l X-Google-Smtp-Source: ADFU+vustPvHM2/w0c+ajWoO2B1zFJK6EbWsZ/kH2WEOGlKTBqZI1t/TViQm/y0w37syRsrBq5RXng== X-Received: by 2002:a1c:7dc8:: with SMTP id y191mr3103383wmc.167.1583567803707; Fri, 06 Mar 2020 23:56:43 -0800 (PST) Received: from t450s.fritz.box (ip5f58981a.dynamic.kabel-deutschland.de. [95.88.152.26]) by smtp.gmail.com with ESMTPSA id g129sm19189071wmg.12.2020.03.06.23.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 23:56:43 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Sat, 7 Mar 2020 08:56:27 +0100 Message-Id: <20200307075633.7514-7-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200307075633.7514-1-heiko.thiery@gmail.com> References: <20200307075633.7514-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v5 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 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