From patchwork Mon Mar 2 14:50:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1247688 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.138; helo=whitealder.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=nN2U/Mk6; dkim-atps=neutral Received: from whitealder.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 ozlabs.org (Postfix) with ESMTPS id 48WNPK2Pz4z9sPK for ; Tue, 3 Mar 2020 01:51:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7180886138; Mon, 2 Mar 2020 14:50:59 +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 QGrs7SLAFiJz; Mon, 2 Mar 2020 14:50:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 8F90C86110; Mon, 2 Mar 2020 14:50:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 0F2B31BF973 for ; Mon, 2 Mar 2020 14:50:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id F40B6204A6 for ; Mon, 2 Mar 2020 14:50:51 +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 tQRF1LT42w8U for ; Mon, 2 Mar 2020 14:50:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by silver.osuosl.org (Postfix) with ESMTPS id 0A08E204A9 for ; Mon, 2 Mar 2020 14:50:47 +0000 (UTC) Received: by mail-wm1-f51.google.com with SMTP id 6so3055572wmi.5 for ; Mon, 02 Mar 2020 06:50:46 -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=N85N//6s83vTtGmoFbzdZh3veLCiyTyiyARNubiFiGc=; b=nN2U/Mk6x4P2t9+PEkL7OzDrWDXTakxF10LKbQ/Zr6QvjKTzZ6pwQsdmMeC9PwAj9v +4q5V+2/HorsDou52b0MPCK2PkrLltgNQ7WshXKyvYrlma6DOTV9N0GX78WZ4MKuYkU1 +4ekCDvvoyuyu7oLFRnLR/qt1S2826+qjvsuBELS1teWV8toy22HvlLLHH9NqdYdVjLT cr6Qro8xyl/CxD5DDmcUzNVePw9hLwfJU6f8Qa9fRRRzJsJIPKjhFv50sAmH0KFH6gjM UEBTzxzNhMpK6yNdP/HTdvA1s9sdvgyO90hBIdlDAaXMcsPhWQCOVIXu7oVHdYU3ZzUc v/BA== 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=N85N//6s83vTtGmoFbzdZh3veLCiyTyiyARNubiFiGc=; b=Yj1BosWGfmjvUAjSUHg/9i6lw5eEIBKNmJLsB7bA23JoiQfMtqVcgUI5Jl7n9NPWFI ETcEkuzIMkF2XmsCZqWBKcrrCysCcjg3LcdyCGy+B0fuinTUcZKfqZy5MzGPrWG3AoUc Zw/iFs7tCyWvIHi0xLeH6uBCTxxuM1jlqPDsaFVeoTDaFZ/Clcjtgy6Qsn3jiCLIbpGJ kt/CWPRArmxeTDNA/8bttKBP8Z69wjyBNiqs4nDsSySnNY5tT4H2ofg5M66yBHNftGwJ QkvlLIlNUSmQI4gduizFYIkUBmvBINw1+uC7dHRqCmlxAo30/BSjzlEOQTtaqpVPJB7a K+rw== X-Gm-Message-State: APjAAAXXejfTzFRwwwqF2mW5REPSF7mZw5z+7W8QHtvziousnPj5NQ7u mu+QV1sC/vX3RdnCf71zKZ4lNnoY X-Google-Smtp-Source: APXvYqyfnJua8J339pujdzRoemwpJXy1lJDJHsgjQJf8cOn/qiAivwlJGUmAVlOPQLaRsfw3KPTkLA== X-Received: by 2002:a1c:a382:: with SMTP id m124mr19831699wme.90.1583160644181; Mon, 02 Mar 2020 06:50:44 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 06:50:43 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Mon, 2 Mar 2020 15:50:13 +0100 Message-Id: <20200302145013.9574-12-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 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 4cf1a919f3..9d058ca67d 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 @@ -981,6 +986,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)}