Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2EAD4C433EF for ; Sat, 2 Apr 2022 14:16:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C069A84105; Sat, 2 Apr 2022 14:15:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hbJ3sUxIYHP6; Sat, 2 Apr 2022 14:15:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id D215C840F3; Sat, 2 Apr 2022 14:15:57 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 7FB3D1BF968 for ; Sat, 2 Apr 2022 14:15:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 68C9D60BD5 for ; Sat, 2 Apr 2022 14:15:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=bootlin.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3Zcv_DtjSq2o for ; Sat, 2 Apr 2022 14:15:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by smtp3.osuosl.org (Postfix) with ESMTPS id D687560BF0 for ; Sat, 2 Apr 2022 14:15:40 +0000 (UTC) Received: (Authenticated sender: thomas.petazzoni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id DAD5E60002; Sat, 2 Apr 2022 14:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1648908938; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=k3JY5TqGuPMPszWHea/Ok8q7rSFshV4W2QpaHvHAJi4=; b=Mw8IBfHVT3nRz20Mn4905rFHX9osTPagP76dbzdCK6RpA3v+eJlbYnErDOQm2vvhplgLxU UEk1ZbZyLsErcWKEtaQ9HiyqoABG/tHTTxzLvervADbw7lC31cdm66VVE2HZ4vMwfTDdhc 0s7IkpFxDYyAoZHNtgYu5jLM4umbEChQc2sL2OxYGIDf19/iNbuDs8Vw8FnP1qzt3j0wEa 64ivLbJ89ecGt0L2ggt4M5kK4AdsFqCqB8LllMJ5XMD5pn5vxFsvFRLTEKxshC8xn3zAjO EfZeMmLA9hee8ixRRRjZHBcauPWO5u0/vfMN+oqc6CT1jyTRzpqlJlM0Ny7d+g== To: buildroot@buildroot.org Date: Sat, 2 Apr 2022 16:15:27 +0200 Message-Id: <20220402141531.1320584-1-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/4] support/script/pkg-stats: allow disabling CPE matching X-BeenThere: buildroot@buildroot.org 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: , From: Thomas Petazzoni via buildroot Reply-To: Thomas Petazzoni Cc: Thomas Petazzoni Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This is useful when debugging/developing the pkg-stats script. Signed-off-by: Thomas Petazzoni --- support/scripts/pkg-stats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 8cc64a54d1..ef9482ed95 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -1125,7 +1125,7 @@ def parse_args(): parser.add_argument('--nvd-path', dest='nvd_path', help='Path to the local NVD database', type=resolvepath) parser.add_argument('--disable', type=list_str, - help='Features to disable, comma-separated (cve, upstream, url)', + help='Features to disable, comma-separated (cve, upstream, url, cpe)', default=[]) args = parser.parse_args() if not args.html and not args.json: @@ -1184,6 +1184,8 @@ def __main__(): if "cve" not in args.disable and args.nvd_path: print("Checking packages CVEs") check_package_cves(args.nvd_path, packages) + if "cpe" not in args.disable and args.nvd_path: + print("Checking packages CPEs") check_package_cpes(args.nvd_path, packages) print("Calculate stats") stats = calculate_stats(packages) -- 2.35.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot