Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] utils/getdeveloperlib.py: handle file removal
@ 2023-09-11  3:59 Daniel Lang
  2023-09-15 17:51 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Lang @ 2023-09-11  3:59 UTC (permalink / raw)
  To: buildroot

If a patch only removes files, it is ignored. Meaning, that the
registered developer isn't automatically picked up when calling
get-developer.
Fix this by also checking if the line starts with ---, as a patch
removing a file has a line starting with --- with the name of the
removed file and one started with +++ /dev/null.
A set is used to store the changed files, which doesn't allow
duplicates. Therefore normal patches aren't affected by this change.

Signed-off-by: Daniel Lang <dalang@gmx.at>
---
 utils/getdeveloperlib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/getdeveloperlib.py b/utils/getdeveloperlib.py
index e7d0d23e49..469360b801 100644
--- a/utils/getdeveloperlib.py
+++ b/utils/getdeveloperlib.py
@@ -25,7 +25,7 @@ def analyze_patch(patch):
         m = FIND_INFRA_IN_PATCH.match(line)
         if m:
             infras.add(m.group(2))
-        if not line.startswith("+++ "):
+        if not line.startswith("+++ ") and not line.startswith("--- "):
             continue
         line.strip()
         fname = line[line.find("/") + 1:].strip()
-- 
2.42.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] utils/getdeveloperlib.py: handle file removal
  2023-09-11  3:59 [Buildroot] [PATCH] utils/getdeveloperlib.py: handle file removal Daniel Lang
@ 2023-09-15 17:51 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2023-09-15 17:51 UTC (permalink / raw)
  To: Daniel Lang; +Cc: buildroot

>>>>> "Daniel" == Daniel Lang <dalang@gmx.at> writes:

 > If a patch only removes files, it is ignored. Meaning, that the
 > registered developer isn't automatically picked up when calling
 > get-developer.
 > Fix this by also checking if the line starts with ---, as a patch
 > removing a file has a line starting with --- with the name of the
 > removed file and one started with +++ /dev/null.
 > A set is used to store the changed files, which doesn't allow
 > duplicates. Therefore normal patches aren't affected by this change.

 > Signed-off-by: Daniel Lang <dalang@gmx.at>

Committed to 2023.02.x, 2023.05.x and 2023.08.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-15 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-11  3:59 [Buildroot] [PATCH] utils/getdeveloperlib.py: handle file removal Daniel Lang
2023-09-15 17:51 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox