From c1417af54cf2cd037d5af98ec2272597ee8b9b22 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Fri, 27 Mar 2020 13:57:32 -0400 Subject: We do want to use a list when sorting trailers Switching to using sets for all trailer management resulted in trailer order being non-deterministic for trailers with the same title. Switch back to using lists where it makes a difference. Reported-by: Martin K. Petersen Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/b4/__init__.py b/b4/__init__.py index ed9834b..a8da720 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -807,8 +807,7 @@ class LoreMessage: # Now we add mix-in trailers btrailers.reverse() - trailers = set(self.followup_trailers) - trailers.update(set(btrailers)) + trailers = btrailers + list(self.followup_trailers) added = list() if trailer_order is None: trailer_order = DEFAULT_TRAILER_ORDER -- cgit v1.2.3