From patchwork Sat Feb 22 08:57:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1242461 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.133; helo=hemlock.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=W+U+y6AI; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48PjGy6Xqkz9sPk for ; Sat, 22 Feb 2020 20:10:50 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CA0E287FF7; Sat, 22 Feb 2020 09:10:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01J3Yik0ZDyj; Sat, 22 Feb 2020 09:10:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 55E7387FFB; Sat, 22 Feb 2020 09:10:46 +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 95A3E1BF5D7 for ; Sat, 22 Feb 2020 09:10:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 91DEE860C0 for ; Sat, 22 Feb 2020 09:10:39 +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 sigyzXe3IR1Q for ; Sat, 22 Feb 2020 09:10:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by fraxinus.osuosl.org (Postfix) with ESMTPS id E83F2855CF for ; Sat, 22 Feb 2020 09:10:38 +0000 (UTC) Received: by mail-wr1-f51.google.com with SMTP id w12so4686735wrt.2 for ; Sat, 22 Feb 2020 01:10:38 -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=WOWXX4T/BVSfXLjKMW/4bgPD/kC/UFAq8aqbRjPQePs=; b=W+U+y6AIJ6JOkrhG/9OTxrrQMnI4cFeg8nysYIXGjARS38yTEKAqh/ahY/YRjQq4Ir umaa6ZP7eqTMeP3BoLvjRxC+c4o5VJmru/zxjDRq63+WIe6NcZxwG7sxMS62Y7xNPAva KoDsqD8OuZnUasKSKj+52Xd6WBWQW09n10GUZFz/chXqKLMqiTfL8fYNLVSLIO3lvCv5 7nSy8js0uSkOfoAvH4C14NoJZr61mTskXC4SN/MmaEOennOy5ZtJpwjndJWKxBT++bbA aq3RZLneVJH2M6La8+YK1aW6CNHnXUPAwsWCUyxMi83rStJ9ax+h6VyNOpIj5hRjjdAm TknA== 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=WOWXX4T/BVSfXLjKMW/4bgPD/kC/UFAq8aqbRjPQePs=; b=JDTXp2yREKpTvrv3/w8tco1rUpi77VIri10iZ44FF0vsvR+6lvxxEGSOcIddYsCAgT IbRyjvmk8yo01csW6ds3YNjg3B/7oqqb13clxCy3/ISeuxFpzzeg/9fnlKLqjwzSHLte KpZUa+po06/SDNeXeba/cCqkgk69aO4QS0QHqLakc1Ph1J0pAMbt/7D/CWXFc0S+oss0 vr9qaNYcODwgy3K/grXD6ZeQ8wzIuJavi6h6umr1xdfOBiyBu9jTVVtyOG6A9IrudcBz Xf2cdJiBChco5GVtidy83EdHu583TD7xqKicet+21G1C9GWNnjRMy0A0bFOQIL6k8SVG z5bQ== X-Gm-Message-State: APjAAAUQs64V6GJ1sbwZxKRelhis4uwgqrd6bwJdy8BVlt3gAv6yE3jJ qrIg/0CYZsQ7UuE+sjmgFrfnd3l5 X-Google-Smtp-Source: APXvYqz0Bq14R1zpHJ11tm6EVAIzQQ/WaBpxxCLzSeHymKr1Df0VoE48+55+A70mtWsWiGJy/6jcqA== X-Received: by 2002:a5d:6709:: with SMTP id o9mr52556810wru.82.1582362637134; Sat, 22 Feb 2020 01:10:37 -0800 (PST) Received: from t450s.fritz.box (ip5f589959.dynamic.kabel-deutschland.de. [95.88.153.89]) by smtp.gmail.com with ESMTPSA id l6sm603970wrb.75.2020.02.22.01.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Feb 2020 01:10:36 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Sat, 22 Feb 2020 09:57:10 +0100 Message-Id: <20200222085715.23769-7-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200222085715.23769-1-heiko.thiery@gmail.com> References: <20200222085715.23769-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v3 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 Reviewed-by: Titouan Christophe Tested-by: Titouan Christophe --- support/scripts/pkg-stats | 1 + 1 file changed, 1 insertion(+) diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 7c8cc81cf2..90afcc2332 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -544,6 +544,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