Hi,
this series adds a basic support for Simple Streams v1.0 metadata
files. This makes it possible to create a repository .conf files with
[cirros]
uri=http://download.cirros-cloud.net
format=simplestreams
to read the latest version of each CirrOS image.
Thanks,
Pino Toscano (4):
builder: add non-int revisions
builder: add simple libyajl binding
build: expose HAVE_YAJL to automake
builder: support Simple Streams v1.0 as index metadata
.gitignore | 3 +
builder/Makefile.am | 51 ++-
builder/builder.ml | 11 +-
builder/cache.ml | 2 +-
builder/cache.mli | 6 +-
builder/downloader.mli | 2 +-
builder/index.ml | 4 +-
builder/index.mli | 2 +-
builder/index_parser.ml | 4 +-
builder/simplestreams_parser.ml | 204 ++++++++++
builder/simplestreams_parser.mli | 19 +
builder/sources.ml | 9 +
builder/sources.mli | 1 +
builder/test-simplestreams/streams/v1/index.json | 18 +
.../v1/net.cirros-cloud:released:download.json | 429 +++++++++++++++++++++
.../virt-builder/repos.d/cirros.conf.in | 3 +
builder/test-virt-builder-list-simplestreams.sh | 108 ++++++
builder/utils.ml | 7 +
builder/virt-builder.pod | 7 +
builder/yajl-c.c | 143 +++++++
builder/yajl.ml | 30 ++
builder/yajl.mli | 33 ++
builder/yajl_tests.ml | 139 +++++++
configure.ac | 2 +
po/POTFILES | 1 +
po/POTFILES-ml | 3 +
26 files changed, 1226 insertions(+), 15 deletions(-)
create mode 100644 builder/simplestreams_parser.ml
create mode 100644 builder/simplestreams_parser.mli
create mode 100644 builder/test-simplestreams/streams/v1/index.json
create mode 100644
builder/test-simplestreams/streams/v1/net.cirros-cloud:released:download.json
create mode 100644 builder/test-simplestreams/virt-builder/repos.d/cirros.conf.in
create mode 100755 builder/test-virt-builder-list-simplestreams.sh
create mode 100644 builder/yajl-c.c
create mode 100644 builder/yajl.ml
create mode 100644 builder/yajl.mli
create mode 100644 builder/yajl_tests.ml
--
2.1.0