Author: sebb
Date: Sat Oct 10 22:15:37 2015
New Revision: 1707921
URL: http://svn.apache.org/viewvc?rev=1707921&view=rev
Log:
Ensure files are sorted in future (will make diffs easier to read once the file
has been sorted)
Modified:
comdev/reporter.apache.org/trunk/parseversions.py
comdev/reporter.apache.org/trunk/site/addrelease.py
comdev/reporter.apache.org/trunk/site/jiraversions.py
Modified: comdev/reporter.apache.org/trunk/parseversions.py
URL:
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/parseversions.py?rev=1707921&r1=1707920&r2=1707921&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/parseversions.py (original)
+++ comdev/reporter.apache.org/trunk/parseversions.py Sat Oct 10 22:15:37 2015
@@ -37,5 +37,5 @@ for project in projects:
print(err)
with open("/var/www/reporter.apache.org/data/releases/%s.json" %
project, "w") as f:
- json.dump(rdata, f, indent=1)
+ json.dump(rdata, f, indent=1, sort_keys=True)
f.close()
\ No newline at end of file
Modified: comdev/reporter.apache.org/trunk/site/addrelease.py
URL:
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/addrelease.py?rev=1707921&r1=1707920&r2=1707921&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/addrelease.py (original)
+++ comdev/reporter.apache.org/trunk/site/addrelease.py Sat Oct 10 22:15:37 2015
@@ -50,7 +50,7 @@ if date != None and version and committe
if version in rdata:
del rdata[version]
with open("/var/www/reporter.apache.org/data/releases/%s.json" %
committee, "w") as f:
- json.dump(rdata, f, indent=1)
+ json.dump(rdata, f, indent=1, sort_keys=True)
f.close()
saved = True
if dojson:
Modified: comdev/reporter.apache.org/trunk/site/jiraversions.py
URL:
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/jiraversions.py?rev=1707921&r1=1707920&r2=1707921&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/jiraversions.py (original)
+++ comdev/reporter.apache.org/trunk/site/jiraversions.py Sat Oct 10 22:15:37
2015
@@ -63,7 +63,7 @@ if (isMember(user) or project in groups)
except Exception as err:
pass
with open("/var/www/reporter.apache.org/data/releases/%s.json" %
project, "w") as f:
- json.dump(rdata, f, indent=1)
+ json.dump(rdata, f, indent=1, sort_keys=True)
f.close()
print("Content-Type: application/json\r\n\r\n")