diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-02-03 13:55:06 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-02-03 13:55:06 -0500 |
commit | bb4aa13576587848f955248dfa0d742f4f655b85 (patch) | |
tree | 379385ade3650b7867219dca15a80c465a6a24aa | |
parent | 06223b0e22182a2056b5ba9d4993e9f7d5bef486 (diff) | |
download | korg-helpers-bb4aa13576587848f955248dfa0d742f4f655b85.tar.gz |
Make sure trailers are unique
Make sure that all trailers are unique by making a set out of them.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | get-lore-mbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/get-lore-mbox.py b/get-lore-mbox.py index f7927cc..5f45da4 100755 --- a/get-lore-mbox.py +++ b/get-lore-mbox.py @@ -180,7 +180,7 @@ def git_add_trailers(payload, trailers): cmdargs = ['interpret-trailers'] output = payload if trailers: - for trailer in trailers: + for trailer in set(trailers): # Check if this trailer is already in the body if payload.find(trailer) < 0: logger.info(' Adding trailer: %s', trailer) |