Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Einar Jon Gunnarsson <tolvupostur@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] support/scripts/check-uniq-files: Only report each package once
Date: Tue, 11 Dec 2018 15:05:44 +0100	[thread overview]
Message-ID: <1544537144-10197-1-git-send-email-tolvupostur@gmail.com> (raw)

Rebuilding the same package should not trigger
a 'touched by more than one package' warning

Signed-off-by: Einar Jon Gunnarsson <tolvupostur@gmail.com>
---
 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:
-- 
2.7.4

             reply	other threads:[~2018-12-11 14:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-11 14:05 Einar Jon Gunnarsson [this message]
2018-12-30 22:02 ` [Buildroot] [PATCH 1/1] support/scripts/check-uniq-files: Only report each package once Yann E. MORIN
2019-01-02 12:12   ` Yann E. MORIN
2019-01-08 10:06     ` Einar Jón
2019-01-08 21:18       ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1544537144-10197-1-git-send-email-tolvupostur@gmail.com \
    --to=tolvupostur@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox