diff options
author | Tom Rini <trini@konsulko.com> | 2021-08-09 09:27:06 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-08-09 09:27:06 -0400 |
commit | 0dec2030ccc686eae4616d1ce57d41eaed15685e (patch) | |
tree | 5e9a34e4d51c4587a2138a2de969361ad3ec1f2c /tools/patman/patchstream.py | |
parent | 3823315cbedf930c52fe77452063ab6d62b157be (diff) | |
parent | e679f39f7fc3eb083b2f957d748f81bbdc28f28c (diff) |
Merge tag 'dm-pull-8aug21' of https://source.denx.de/u-boot/custodians/u-boot-dm
Use log subsystem for dm_warn()
Various minor bug fixes
Diffstat (limited to 'tools/patman/patchstream.py')
-rw-r--r-- | tools/patman/patchstream.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index b960292427..2439fb18e4 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -662,6 +662,7 @@ def insert_tags(msg, tags_to_emit): out = [] done = False emit_tags = False + emit_blank = False for line in msg.splitlines(): if not done: signoff_match = RE_SIGNOFF.match(line) @@ -672,9 +673,13 @@ def insert_tags(msg, tags_to_emit): out += tags_to_emit emit_tags = False done = True + emit_blank = not (signoff_match or tag_match) + else: + emit_blank = line out.append(line) if not done: - out.append('') + if emit_blank: + out.append('') out += tags_to_emit return '\n'.join(out) |