[Libguestfs] [PATCH v6 00/10] Add a virt-builder-repository tool

Cédric Bosdonnat cbosdonnat at suse.com
Wed Apr 12 12:33:02 UTC 2017


Hi all,

Here is an updated version of that patch series.

Diff to v5:
  * Apply Pino's comments
  * Fix indentation issues
  * Add a default value for arch in builder/index_parser.ml if template
    is set
  * Improved new images filtering: don't process image that didn't
    change. This has been uncovered by introduction of --no-compression

Cédric Bosdonnat (10):
  lib/osinfo.c: Extract xml processing into a callback
  lib: extract osinfo DB traversing API
  mllib: ocaml wrapper for lib/osinfo
  builder: rename docs test script
  builder: add a template parameter to get_index
  builder: add Index.write_entry function
  dib: move do_cp to mllib.Commun_utils
  mllib: add do_mv helper function to Common_utils
  mllib: add XPath helper xpath_get_nodes()
  Add a virt-builder-repository tool

 .gitignore                                         |   4 +
 builder/Makefile.am                                | 124 ++++-
 builder/builder.ml                                 |   2 +-
 builder/index.mli                                  |   3 +
 builder/index_parser.ml                            |  80 ++-
 builder/index_parser.mli                           |   8 +-
 builder/index_parser_tests.ml                      | 129 +++++
 builder/repository_main.ml                         | 570 +++++++++++++++++++++
 .../{test-virt-builder-docs.sh => test-docs.sh}    |   2 +
 builder/virt-builder-repository.pod                | 209 ++++++++
 dib/utils.ml                                       |   4 -
 lib/Makefile.am                                    |   2 +
 lib/osinfo-iso.c                                   | 462 +++++++++++++++++
 lib/osinfo.c                                       | 489 ++----------------
 lib/osinfo.h                                       |  27 +
 mllib/Makefile.am                                  |  11 +-
 mllib/common_utils.ml                              |  11 +
 mllib/common_utils.mli                             |   6 +
 mllib/osinfo-c.c                                   | 103 ++++
 mllib/osinfo.ml                                    |  26 +
 mllib/osinfo.mli                                   |  31 ++
 mllib/xpath_helpers.ml                             |   9 +
 mllib/xpath_helpers.mli                            |   4 +
 23 files changed, 1859 insertions(+), 457 deletions(-)
 create mode 100644 builder/index_parser_tests.ml
 create mode 100644 builder/repository_main.ml
 rename builder/{test-virt-builder-docs.sh => test-docs.sh} (93%)
 create mode 100644 builder/virt-builder-repository.pod
 create mode 100644 lib/osinfo-iso.c
 create mode 100644 lib/osinfo.h
 create mode 100644 mllib/osinfo-c.c
 create mode 100644 mllib/osinfo.ml
 create mode 100644 mllib/osinfo.mli

-- 
2.12.0




More information about the Libguestfs mailing list