[Reproducible-commits] [misc] 01/02: edit-notes: Convert to unicode for consistent matching

Chris Lamb chris at chris-lamb.co.uk
Sat Jul 23 10:00:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository misc.

commit fb9a8dfe5b737b0b364f3e4f2f08d32f1810d0a9
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Jul 23 10:59:36 2016 +0100

    edit-notes: Convert to unicode for consistent matching
---
 edit-notes | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/edit-notes b/edit-notes
index e394a2a..5903eb8 100755
--- a/edit-notes
+++ b/edit-notes
@@ -71,7 +71,9 @@ if __name__ == '__main__':
             for x in src:
                 if dst not in data:
                     data[dst] = []
-                if x not in data[dst]:
+                # Convert to unicode for consistent matching
+                existing = set(str(y) for y in data[dst])
+                if x not in existing:
                     data[dst].append(x)
 
         if args.set_comment:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list