[Secure-testing-commits] r32514 - bin
Holger Levsen
holger at moszumanska.debian.org
Thu Feb 26 16:08:35 UTC 2015
Author: holger
Date: 2015-02-26 16:08:35 +0000 (Thu, 26 Feb 2015)
New Revision: 32514
Modified:
bin/tracker_service.py
Log:
fixup .json formatting
Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py 2015-02-26 15:49:49 UTC (rev 32513)
+++ bin/tracker_service.py 2015-02-26 16:08:35 UTC (rev 32514)
@@ -1301,9 +1301,10 @@
nodsa[pkg][issue][repository] = db_nodsa
data = []
- data.append('{\n')
+ data.append('[\n')
for pkg in packages:
- data.append(' "package": "'+pkg+'",\n')
+ data.append(' {\n')
+ data.append(' "package": "'+pkg+'",\n')
data.append(' "issues": [\n')
for issue in issues[pkg]:
data.append(' {\n')
@@ -1358,7 +1359,8 @@
data.append(' ],\n')
data.append(' },\n')
data.append(' ],\n')
- data.append('}\n')
+ data.append(' },\n')
+ data.append(']\n')
return BinaryResult(''.join(data),'application/octet-stream')
More information about the Secure-testing-commits
mailing list