[Reproducible-commits] [misc] 02/02: fix search for bug numbers in SELECT result
Johannes Schauer
josch at moszumanska.debian.org
Thu Feb 12 20:03:06 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 e7c248412fa68535645e3dad1216319c5889956b
Author: josch <j.schauer at email.de>
Date: Thu Feb 12 21:03:01 2015 +0100
fix search for bug numbers in SELECT result
---
clean-notes | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/clean-notes b/clean-notes
index 4b8de93..ba10c7e 100755
--- a/clean-notes
+++ b/clean-notes
@@ -201,7 +201,9 @@ def check_bugs(notes):
email='reproducible-builds at lists.alioth.debian.org' AND (
%s )""" % ids)
for bug in bugs_list:
- if bug not in rows:
+ # the results from SELECT are a list of one-element tuples, so we have
+ # have to look up 1-tuples with the bug number in the list
+ if (bug,) not in rows:
print("bug #" + str(bug) + " in package " + bugs_package[bug] +
" is not usertagged")
--
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