[Secure-testing-commits] r33087 - bin

Holger Levsen holger at moszumanska.debian.org
Mon Mar 23 19:15:38 UTC 2015


Author: holger
Date: 2015-03-23 19:12:41 +0000 (Mon, 23 Mar 2015)
New Revision: 33087

Modified:
   bin/tracker_service.py
Log:
json/#761859: use stable key names for releases dict, indicate the release an issue was fixed in via new key, 'fixed_since'.

Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py	2015-03-23 19:06:36 UTC (rev 33086)
+++ bin/tracker_service.py	2015-03-23 19:12:41 UTC (rev 33087)
@@ -1374,17 +1374,20 @@
                         # 1 = vulnerable, 2 = undetermined
                         state = "open"
                         suite_version = version[pkg][issue][repository]
+                        fixed_since = None
                     else:
                         state = "resolved"
                         suite_version = fixed_version[pkg][issue][repository]
+                        fixed_since = repository
                     suite_urgency = urgency[pkg][issue][repository]
                     if nodsa[pkg][issue].has_key(repository):
                         suite_nodsa = nodsa[pkg][issue][repository]
-                    suites[repository] = { "status": state,
-                                          "version": suite_version,
-                                          "urgency": suite_urgency,
-                                          "nodsa": suite_nodsa }
-                    clean_dict(suites[repository])
+                    suites[release] = { "status": state,
+                                        "fixed_since" : fixed_since,
+                                        "version": suite_version,
+                                        "urgency": suite_urgency,
+                                        "nodsa": suite_nodsa }
+                    clean_dict(suites[release])
                 pkg_issue = { "issue": issue,
                               "description": description,
                               "debianbug": debianbug,




More information about the Secure-testing-commits mailing list