From patchwork Sat Feb 22 08:57:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1242458 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=KEUojvwR; 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 48PjGq5CXhz9sRJ for ; Sat, 22 Feb 2020 20:10:43 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C3A6987FD8; Sat, 22 Feb 2020 09:10:39 +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 ddrjyFuQD4KQ; Sat, 22 Feb 2020 09:10:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3052287F5A; Sat, 22 Feb 2020 09:10:39 +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 72A761BF5D7 for ; Sat, 22 Feb 2020 09:10:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6B1B6860E6 for ; Sat, 22 Feb 2020 09:10:35 +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 MFqqySUmyNbZ for ; Sat, 22 Feb 2020 09:10:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id C488F85F6A for ; Sat, 22 Feb 2020 09:10:33 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id y11so4672848wrt.6 for ; Sat, 22 Feb 2020 01:10:33 -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=x2gcKFxVUTNK5k1JpLGqHaTL+oi1ohwulpeVSB+NryQ=; b=KEUojvwRNwUFvK3VXIYNnRcZjxH2YECltb9VT1Sq6od8xZFhKc9sHneU55/0tqfsu5 VKgyxMHBnf+OWAf7BAFtamxiZY6ml9g6LdZaDRsinQJZ1I904k3KUA5/fiUAApU3L3jQ zVA2Uy193uKl1WXG1UOZtH0Gc5LAREuOkvb1F+ttFL34BtLB+sGFYrVWyDcQ/DpD7Qn4 pPJVvBkhD3LY2LxMdQ+X541rMjiNx0yvmF0M6Xq9k0+QiFqcYUYbuMThhyH7NCsguruV LXXE38wwFj87lcwEPKNDph/+/d2TrpcwCQW+Uo3+xkle7l++JmHT3Swowmt1OHqq2cMn s3Sw== 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=x2gcKFxVUTNK5k1JpLGqHaTL+oi1ohwulpeVSB+NryQ=; b=XshdDGWCPbhv7oE8Ny3+UoArIt//wttWY5bYAYLOGQr3FIQxdypFK5tzRqVR5WaDrv p1StkBDtdNxUYK0TZB3L2XtE/Ffoy4mKC7vynzdaCrvYHzAHN0pk7h3JM6Nfbwo8EqTX hOfk5inD+49XvX8gBiznKV+OKv+70mIjvJ/x7HP94Gg04a+WCE12z0pQdUvDR8FiQWGL aBPfI/vEzekHufCN/QwLQM4q2uB0q5lPVpO2p6MQW/BuhmgpzkH+Qgo0ddsYtgUYXupd pe9oIYgGV6Bmlf+Qa5Iz7/yhAHqaIJaIfrUCvUOs2Y8pCptnEakzWAi2CSzOCCdNv8SX +7kA== X-Gm-Message-State: APjAAAXW/bkrSISkORT64mUMtYiwwRVT2rHep3NKFuuuF3yC05Lgz+jG FgsQOXfe1nxvpIguON6/CfYOWY7w X-Google-Smtp-Source: APXvYqyMBMTZKmsufZSZwftqifidK+WWT0F8PfsMtCxvDw/F6Fy6ETcdfKkzFgY4kwEGRlB2glY6Dg== X-Received: by 2002:adf:c3d0:: with SMTP id d16mr51363935wrg.376.1582362631890; Sat, 22 Feb 2020 01:10:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Feb 2020 01:10:31 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Sat, 22 Feb 2020 09:57:06 +0100 Message-Id: <20200222085715.23769-3-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 02/12] support/scripts/pkg-stats: store patch files for the package 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 , Heiko Thiery , Thomas Petazzoni , Titouan Christophe Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Heiko Thiery Signed-off-by: Heiko Thiery Signed-off-by: Heiko Thiery --- support/scripts/pkg-stats | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 8cc78f2f66..4c963cef0f 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -65,6 +65,7 @@ class Package: self.has_license_files = False self.has_hash = False self.patch_count = 0 + self.patch_files = [] self.warnings = 0 self.current_version = None self.url = None @@ -131,10 +132,10 @@ class Package: """ Fills in the .patch_count field """ - self.patch_count = 0 pkgdir = os.path.dirname(self.path) for subdir, _, _ in os.walk(pkgdir): - self.patch_count += len(fnmatch.filter(os.listdir(subdir), '*.patch')) + self.patch_files = fnmatch.filter(os.listdir(subdir), '*.patch') + self.patch_count = len(self.patch_files) def set_current_version(self): """