chiark / gitweb /
add index V1 format, a direct translation of internal dict
authorHans-Christoph Steiner <hans@eds.org>
Mon, 28 Nov 2016 20:09:07 +0000 (21:09 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 17 Mar 2017 12:55:40 +0000 (13:55 +0100)
commitc9aa26d89ea077707df7b8b3d4a4e1b3e6c37ca6
tree6d81f11575262af2487539bcb658edecf8dd007c
parentb3a5db52f79aa9cbf812ee54c612b1f53b29364a
add index V1 format, a direct translation of internal dict

Python encode/decode libs work directly with dicts, so the internal dict
can just be passed directly to any of these libs (pyyaml, pyjson, msgpack,
simplejson, etc).  This still generates the exact same index.xml as before.

This converts the internal format for the repo timestamp to a datetime
instance, which can be easily converted to UNIX time in seconds for XML
and UNIX time in milliseconds for the new index formats.  UNIX time in
milliseconds is directly serialized into a java.util.Date instance by
Jackson.
.gitignore
fdroidserver/common.py
fdroidserver/server.py
fdroidserver/update.py
tests/run-tests