[Blends-commit] [SCM] website branch, master, updated. 5cdd74855fd0fd9aeee6d283ef34e1b05beafe47

Andreas Tille tille at debian.org
Fri Jul 26 13:23:58 UTC 2013


The following commit has been merged in the master branch:
commit 5cdd74855fd0fd9aeee6d283ef34e1b05beafe47
Author: Andreas Tille <tille at debian.org>
Date:   Fri Jul 26 15:26:43 2013 +0200

    Proper initialisation of severities dictionary

diff --git a/webtools/bugs_udd.py b/webtools/bugs_udd.py
index 0ada84d..4c012b2 100755
--- a/webtools/bugs_udd.py
+++ b/webtools/bugs_udd.py
@@ -152,6 +152,8 @@ def main():
                 bugs_data[task[0]][status]         = {}
                 if status != 'done':
                     bugs_data[task[0]][status]['severities'] = {}
+                    for s in SEVERITIES:
+                        bugs_data[task[0]][status]['severities'][s] = 0
     else:
         print >>stderr, "No tasks metadata received for Blend", blendname
         exit(1)
@@ -191,9 +193,6 @@ def main():
     if curs.rowcount > 0:
         for pkg in RowDictionaries(curs):
             for task in pkg['tasks']:
-                for s in SEVERITIES:
-                    bugs_data[task]['depends']['severities'][s] = 0
-                    bugs_data[task]['suggests']['severities'][s] = 0
 		if not bugs_data[task][pkg['status']].has_key(pkg['source']):
                     bugs_data[task][pkg['status']][pkg['source']] = {}
                 bugs_data[task][pkg['status']][pkg['source']]['homepage']    = pkg['homepage']

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list