mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
utils/getdeveloperlib.py: handle file removal
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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 7bc5ea80c7)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
1c6e9cd37f
commit
15639f4299
@@ -25,7 +25,7 @@ def analyze_patch(patch):
|
|||||||
m = FIND_INFRA_IN_PATCH.match(line)
|
m = FIND_INFRA_IN_PATCH.match(line)
|
||||||
if m:
|
if m:
|
||||||
infras.add(m.group(2))
|
infras.add(m.group(2))
|
||||||
if not line.startswith("+++ "):
|
if not line.startswith("+++ ") and not line.startswith("--- "):
|
||||||
continue
|
continue
|
||||||
line.strip()
|
line.strip()
|
||||||
fname = line[line.find("/") + 1:].strip()
|
fname = line[line.find("/") + 1:].strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user