[Reproducible-commits] [misc] 01/01: rblib/yaml: turns out bad people add bugs which are not numbers, kick them if they try it again
Mattia Rizzolo
mattia at debian.org
Sun Dec 27 00:06:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository misc.
commit 503b81c103d42b666b136aaa3256b45a12ce9531
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sun Dec 27 00:06:08 2015 +0000
rblib/yaml: turns out bad people add bugs which are not numbers, kick them if they try it again
---
rblib/yamlfiles.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/rblib/yamlfiles.py b/rblib/yamlfiles.py
index 8166beb..539f446 100644
--- a/rblib/yamlfiles.py
+++ b/rblib/yamlfiles.py
@@ -51,6 +51,15 @@ def write_out(notes):
if 'bugs' in values and values['bugs']:
out += " bugs:\n"
for bug in 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:
+ assert isinstance(bug, int)
+ except AssertionError:
+ log.critical('The note for %s contains an invalid bug '
+ 'number that is not a number. Fix manually.',
+ pkg)
+ raise
out += " - %s\n" % bug
with open(NOTES_YAML, 'wb') as f:
f.write(out.encode('utf-8'))
--
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