[Reproducible-commits] [misc] 01/01: clean-notes: ignore toolchain and infrastucture usertag while doing the not-usertagged check
Mattia Rizzolo
mapreri-guest at moszumanska.debian.org
Wed Jan 7 14:44:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
mapreri-guest pushed a commit to branch master
in repository misc.
commit 04f137d522e8d3e63a02774cc7b32f13e7d66914
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Wed Jan 7 15:44:41 2015 +0100
clean-notes: ignore toolchain and infrastucture usertag while doing the not-usertagged check
---
clean-notes | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/clean-notes b/clean-notes
index b70ebc9..e90ce65 100755
--- a/clean-notes
+++ b/clean-notes
@@ -163,6 +163,7 @@ def is_virtual_package(package):
def get_bugs():
rows = query_udd("""SELECT * FROM bugs_usertags WHERE
email='reproducible-builds at lists.alioth.debian.org'""")
+ # returns a list of tuples (email, tag, id)
bugs = {}
for tag in rows:
try:
@@ -187,9 +188,14 @@ def parse_bugs(bugs):
packages = {}
ids = ''
bugs_list = sorted(bugs.keys())
+ ignored_tags=['toolchain', 'infrastructure']
+ OR = ''
for bug in bugs_list[:-1]:
- ids += 'id=' + str(bug) + ' OR '
- ids += 'id=' + str(bugs_list[-1])
+ if not [i for i in bugs[bug] if i in ignored_tags]:
+ ids += OR + 'id=' + str(bug)
+ OR = ' OR '
+ if not [i for i in bugs[bugs_list[-1]] if i in ignored_tags]:
+ ids += OR + 'id=' + str(bugs_list[-1])
query = """SELECT id, source, done FROM bugs WHERE %s""" % ids
rows = query_udd(query)
for item in rows:
--
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