From patchwork Tue Dec 11 14:05:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Einar_J=C3=B3n?= X-Patchwork-Id: 1011113 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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.b="C0lQ2OdX"; 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 43DhYs1dh9z9s55 for ; Wed, 12 Dec 2018 01:06:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 46F3B8563C; Tue, 11 Dec 2018 14:06:05 +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 XnNsxG20042h; Tue, 11 Dec 2018 14:06:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C039A85608; Tue, 11 Dec 2018 14:06:04 +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 1C4461C296D for ; Tue, 11 Dec 2018 14:06:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 19A77232D7 for ; Tue, 11 Dec 2018 14:06:03 +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 ZQudTfVD1DV5 for ; Tue, 11 Dec 2018 14:06:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by silver.osuosl.org (Postfix) with ESMTPS id 5C1E0228EA for ; Tue, 11 Dec 2018 14:06:02 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id p6so12640483eds.0 for ; Tue, 11 Dec 2018 06:06:02 -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; bh=w7GbHZi04HhL5kd2qqng14Vt8i/Z8dpqMbBiXt1c2gQ=; b=C0lQ2OdXBDLMvDjnIoCB9qTbpuGjj9Z/o35J2CxIl2r7S7eQkr5oQFqG5TYmutzq8i s1Kl2EtWjWBpfHirYdV2jo6XCucrI3WmVSLZDJNVuKOpURBNWIHWqTyDrEHgF6LF7tnT v5KIVot6KQ1fqPL/eHW0QK2VgvkJVppNJxOVQftZMmbs93yCyur1TzElIV/4pZjp8Ih9 kWIYZ6SIrDp4SJFEcsHi63+eEBpExRdh9kMTSGJ2wNd3Ji/DQ+TsC8RfML4Vdy9hqRZJ kwBTiRgBWShxa5KuIc0RWEZ1ai5iTfi7kG64nqrXAYzmmS2JygNw1V9pjUX+SJ4MTQf2 CXvg== 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; bh=w7GbHZi04HhL5kd2qqng14Vt8i/Z8dpqMbBiXt1c2gQ=; b=PkpxDYb4SrNdnRBKZgIIGTcPX2hFmxk13IhwHj8NSOjE97Z/WWBKMEBgo/zpC2o1j4 t3eBmlh4cLrZPCLbf4M1jjXPQ1bbH4A0RjyvQnvqS8+E8AxXbEfwX6/QtM8kOa5bvzJ+ VIh7jTkWeOEjkkw3tRf4JKVow1Zf0es4YHv+M1OJlq3mLGcxKHOq6Mb6KuC3BVyzgZoJ N+e9zwt9ZSuImQWY2Rb+sy+l/gdJPggJqGR1851jH6Za3D1S4OWJglQjASvcHQ0A6L3w n07HI+c1SKBo12JbDMtfm+A1Pd/gRpr0k/9pa3hUJF/cL9nPjGAF1q0SKV5txDm18hP0 YSYA== X-Gm-Message-State: AA+aEWbhNdj9ja9kOBjgPaufC4+DelhfhJQtsAkvNjsuwIKUsp2VpRBQ wcRVOlLSrmZXcihuytUEvMS+ZvKJB9c= X-Google-Smtp-Source: AFSGD/WIXdxGONJGym+6NMSJYEeMz5CVNdEhY7Zu9nxwXF909bABkEBitfDVq8jlQPPEaKkdzE5lYw== X-Received: by 2002:a50:8e95:: with SMTP id w21mr14765601edw.198.1544537159762; Tue, 11 Dec 2018 06:05:59 -0800 (PST) Received: from localhost.localdomain ([143.176.206.168]) by smtp.gmail.com with ESMTPSA id g31sm4059246eda.96.2018.12.11.06.05.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Dec 2018 06:05:57 -0800 (PST) From: Einar Jon Gunnarsson To: buildroot@buildroot.org Date: Tue, 11 Dec 2018 15:05:44 +0100 Message-Id: <1544537144-10197-1-git-send-email-tolvupostur@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH 1/1] support/scripts/check-uniq-files: Only report each package once 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: Einar Jon Gunnarsson MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Rebuilding the same package should not trigger a 'touched by more than one package' warning Signed-off-by: Einar Jon Gunnarsson --- support/scripts/check-uniq-files | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/scripts/check-uniq-files b/support/scripts/check-uniq-files index fbc6b5d..03faa71 100755 --- a/support/scripts/check-uniq-files +++ b/support/scripts/check-uniq-files @@ -28,7 +28,8 @@ def main(): with open(args.packages_file_list[0], 'rb') as pkg_file_list: for line in pkg_file_list.readlines(): pkg, _, file = line.rstrip(b'\n').partition(b',') - file_to_pkg[file].append(pkg) + if not pkg in file_to_pkg[file]: + file_to_pkg[file].append(pkg) for file in file_to_pkg: if len(file_to_pkg[file]) > 1: