[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible debian: common: collect bug titles too while collecting data about bugs
Holger Levsen
holger at layer-acht.org
Sat Jun 18 13:59:52 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit d92abdae989ae53cbd1dba89aeb83596e260dac1
Author: Mattia Rizzolo <mattia at debian.org>
Date: Sat Jun 18 13:58:37 2016 +0000
reproducible debian: common: collect bug titles too while collecting data about bugs
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_common.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index d0224b1..d970405 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -570,13 +570,13 @@ def get_bugs():
"""
This function returns a dict:
{ "package_name": {
- bug1: {patch: True, done: False},
- bug2: {patch: False, done: False},
+ bug1: {patch: True, done: False, title: "string"},
+ bug2: {patch: False, done: False, title: "string"},
}
}
"""
query = """
- SELECT bugs.id, bugs.source, bugs.done, ARRAY_AGG(tags.tag)
+ SELECT bugs.id, bugs.source, bugs.done, ARRAY_AGG(tags.tag), bugs.title
FROM bugs JOIN bugs_usertags ON bugs.id = bugs_usertags.id
LEFT JOIN (
SELECT id, tag FROM bugs_tags
@@ -608,9 +608,9 @@ def get_bugs():
if bug[1] not in packages:
packages[bug[1]] = {}
# bug[0] = bug_id, bug[1] = source_name, bug[2] = who_when_done,
- # bug[3] = tag (patch or pending)
+ # bug[3] = tag (patch or pending), bug[4] = title
packages[bug[1]][bug[0]] = {
- 'done': False, 'patch': False, 'pending': False
+ 'done': False, 'patch': False, 'pending': False, 'title': bug[4]
}
if bug[2]: # if the bug is done
packages[bug[1]][bug[0]]['done'] = True
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list