From patchwork Sat Mar 7 07:56:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1250851 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=hSRcndsK; 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 48ZGzQ39M5z9sPR for ; Sat, 7 Mar 2020 18:57:06 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C6EE486F0C; Sat, 7 Mar 2020 07:56:59 +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 yCrYU3yfJlGQ; Sat, 7 Mar 2020 07:56:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4A4C686F3A; Sat, 7 Mar 2020 07:56:59 +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 2C62C1BF42C for ; Sat, 7 Mar 2020 07:56:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 297AA87666 for ; Sat, 7 Mar 2020 07:56:51 +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 fwsrXYcInlJ1 for ; Sat, 7 Mar 2020 07:56:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by whitealder.osuosl.org (Postfix) with ESMTPS id 680B187660 for ; Sat, 7 Mar 2020 07:56:50 +0000 (UTC) Received: by mail-wm1-f44.google.com with SMTP id e26so4672524wme.5 for ; Fri, 06 Mar 2020 23:56:50 -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=cH58+2NLvBefppZftFKR3xVRZAnduFfdxnB49znk4FI=; b=hSRcndsKdc+ZWK3Kb03O9whonbhCPcMM8XdrsAXZQIQCFLiCU+//KJqJ1dbINpBYNL lw86WzJnnriC7CLBixiW80DB/ODz4USmPVHDRwQ48hBMSr1SwNKL76EUeiHiV0LOY4UO 8g7GlnOLf2lU8y9gMLaGmOIOeC2DxkaMwuhy1vQd3mWIzgJK0CKy0CWvrg24RaSL156g AUkYUZDJmWckpf1HLkg9a1zkw13cgQojYMmnHTpNWN80EXhtkFOQ8/yNXqmIT3o82YF/ 9RNjRXxhfBUI5j19ys3zH1ecrS1gC96DbkwSQ4lJd0vC9zoWq1JrvbS2In3Q4tR1icSn 4sXg== 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=cH58+2NLvBefppZftFKR3xVRZAnduFfdxnB49znk4FI=; b=XuRQ7jWcLIqFze0+SNhyzGZwxCzcID5xbqwZ/tXgfXVSjBaV3vhwhJpsSUARKIIj4j 3uTPniSB6Nzdfoq52dZ1r3HpMFeayI/BVsnkuJiOXDWHK7PK4rm/1nVmiAD0nC3XvIZA RBSK/7ftCG2zz3JRValwiZLC0ukCcG4TEz8ExLF3YjP14MtujuM5pR9aWogs28ZvlYy/ h/rX8a3tEU1/xoj4pwP8E9jK7Vx8b5OzdoYxVKQkZEPUAk2aYozKg+0NLoUxSprQLGsM P8D/w1DUVdGvS3GU/AysBYvKRKK2+k9WWX0havK0xYpzQWFe+LYGHjY5N8STB5a36tVc m2qg== X-Gm-Message-State: ANhLgQ1O+IVk+bKbds0R6i2GNnlnkTUtWuUzjbkaw7btsal/kR/Tdny7 tV/ACpEJJrTSpGI5f6ma68VjoNy9 X-Google-Smtp-Source: ADFU+vtYc9gTWsmNbCnWuZoQ4q7O+Log+frRIqA3E11O8WUr0fB6wdZZi8AfzneTBRQHjS4+AnOMkA== X-Received: by 2002:a7b:c756:: with SMTP id w22mr8518856wmk.90.1583567808596; Fri, 06 Mar 2020 23:56:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 23:56:48 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Sat, 7 Mar 2020 08:56:32 +0100 Message-Id: <20200307075633.7514-12-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 11/12] support/scripts/pkg-stats: add list of status checks to the json output 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 8e75abe1d3..15aa48180e 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -88,6 +88,11 @@ class Package: all_license_files = dict() all_versions = dict() all_ignored_cves = dict() + # This is the list of all possible checks. Add new checks to this list so + # a tool that post-processeds the json output knows the checks before + # iterating over the packages. + status_checks = ['cve', 'developers', 'hash', 'hash-license', 'license', + 'license-files', 'patches', 'pkg-check', 'url', 'version'] def __init__(self, name, path): self.name = name @@ -984,6 +989,7 @@ def dump_json(packages, defconfigs, stats, date, commit, output): final = {'packages': pkgs, 'stats': statistics, 'defconfigs': defconfigs, + 'package_status_checks': Package.status_checks, 'commit': commit, 'date': str(date)}