[Reproducible-commits] [misc] 02/04: clean-notes: the rest of the function assumes that there is at least one bug, so return if empty

Johannes Schauer josch at moszumanska.debian.org
Thu Feb 12 07:18:19 UTC 2015


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

josch pushed a commit to branch master
in repository misc.

commit dc2934a51ca475e33537f30e0dca4663e3e486b9
Author: josch <j.schauer at email.de>
Date:   Thu Feb 12 07:03:57 2015 +0100

    clean-notes: the rest of the function assumes that there is at least one bug, so return if empty
---
 clean-notes | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clean-notes b/clean-notes
index e5da105..d2d605b 100755
--- a/clean-notes
+++ b/clean-notes
@@ -139,6 +139,8 @@ def check_bugs(notes):
     if args.verbose:
         print("looking throught bugs listed in the notes and check whether " +
               "they are usertagged")
+    if not bugs:
+        return
     bugs_list = sorted([x[1] for x in bugs])
     bugs_package = {x[1]: x[0] for x in bugs}
     ids = 'id='

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