From patchwork Sun Jan 5 09:23:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1217723 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.b="UpqLmnEn"; 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 47rCrP1Y8tz9sPK for ; Sun, 5 Jan 2020 20:24:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6DBB78614D; Sun, 5 Jan 2020 09:24:03 +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 M-bwAdIRLYKB; Sun, 5 Jan 2020 09:23:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 362F386018; Sun, 5 Jan 2020 09:23:56 +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 DCA251BF285 for ; Sun, 5 Jan 2020 09:23:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D9C3985DF5 for ; Sun, 5 Jan 2020 09:23:53 +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 2OaeZjfrlj4d for ; Sun, 5 Jan 2020 09:23:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id F05C082157 for ; Sun, 5 Jan 2020 09:23:52 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id a5so12050308wmb.0 for ; Sun, 05 Jan 2020 01:23:52 -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=KneWRHoItYYI4O+sCLv5LUpnH1ODYGQJoMUeZWYEk0c=; b=UpqLmnEnitrysyr4N0GoHrJvHbVos/D05yrFptuYeDgStOU9Td9OcLqXEvmn8UcU7p 2DACx9mEOJo2KBjcae9NkiKTdB8+fGAk3MZYOCX9grK5nv1YiHsn0ceMvpfNNp9wxJjl uO5JdF8ee6Nr/XdHCeu4eVOxvpCvAsZC3cEc1m46F2KnbX+TdTtkZg+iR/E1gYq2NrXL GmVznry/tvlZgOINmviFItsln8yXxJGy6SIpB9M06biy7vIURnAok5SS+7Wx3vk8E+Et u+AfSGpFRUe3LpsGFeuPBBN/tZvOehHHNkUTvOPn5r2P0zb/c/b52wnZtlk35nZYpawF VYgg== 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=KneWRHoItYYI4O+sCLv5LUpnH1ODYGQJoMUeZWYEk0c=; b=dtGe5ucAvkjGuwrlM9QDemG+E0S4GAffJqnwENYbBAbwN6NWQ9Tigb90AW2h6uH4hu 60/ZF5dBKkIcjD/6FP9zPrnEOcpQ79GFr830maZ/o/Lt4pySQGMn27TxWOaREKxuQlMd 5o4jJSEYKUPg886hg59RLW3Od6951ohNG3Zsu0MkfC1xl4s0k4lumvFh5aNqo1HPQ07N 5JZe0orY3iC/JA/ssoWUQYqAawNecgAscXmjX9NS1nfoWveJ4+w+pc7y4NAxPcanKM0d xtItLILOEpyNPWwIBUdxYBtTcNHb7pMZ2d6UOBeQN057SNxmpU5iehGEAMgAq+yTLSpO wbDA== X-Gm-Message-State: APjAAAX1VGgHoZr7uvAqnXG+ieEpS9ZeJ90ydAmb17m2MKo7Zzgolowp 43Lwp8iqYdV3vD7S/xXngT5qdqho X-Google-Smtp-Source: APXvYqxK2NFHiYebQj4XsX/Tj33z3Omc6vj4FD6wKqo7gfYeERk+1MSq7REOVGnRPbZmo31BBk6MLA== X-Received: by 2002:a05:600c:21c6:: with SMTP id x6mr27532738wmj.177.1578216231053; Sun, 05 Jan 2020 01:23:51 -0800 (PST) Received: from t450s.fritz.box (ip5f589927.dynamic.kabel-deutschland.de. [95.88.153.39]) by smtp.gmail.com with ESMTPSA id r62sm19600729wma.32.2020.01.05.01.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2020 01:23:50 -0800 (PST) From: Heiko Thiery To: buildroot@buildroot.org Date: Sun, 5 Jan 2020 10:23:24 +0100 Message-Id: <20200105092329.6288-3-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200105092329.6288-1-heiko.thiery@gmail.com> References: <20200105092329.6288-1-heiko.thiery@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 2/8] 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 , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: 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 8c64993aaf..6e250556e9 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -56,6 +56,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 @@ -121,10 +122,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): """