[misc] 01/01: rblib.yamlfiles: sort and dedplicate bugs list before printing out

Mattia Rizzolo mattia at debian.org
Tue Jan 17 15:34:09 UTC 2017


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

mattia pushed a commit to branch master
in repository misc.

commit 645cc43a30412cff7c4262e8364b6e7979a0703d
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Tue Jan 17 16:33:38 2017 +0100

    rblib.yamlfiles: sort and dedplicate bugs list before printing out
---
 rblib/yamlfiles.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rblib/yamlfiles.py b/rblib/yamlfiles.py
index a0464d3..5f0d7a2 100644
--- a/rblib/yamlfiles.py
+++ b/rblib/yamlfiles.py
@@ -50,7 +50,7 @@ def write_out(notes):
                 out += "    - %s\n" % issue
         if 'bugs' in values and values['bugs']:
             out += "  bugs:\n"
-            for bug in values['bugs']:
+            for bug in sorted(set(values['bugs'])):
                 # this check is run here since I'm not really sure where else
                 # to dump it, since I couldn't find any better place.
                 try:

-- 
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