Displaying 2 results from an estimated 2 matches for "osinfo_db_read_flat".
2017 Jan 03
0
[PATCH 4/5] mllib: add libosinfo DB reading helpers
...let file_path = distro_path // os_file in
+ let xml = read_whole_file file_path in
+ let doc = Xml.parse_memory xml in
+ let xpathctx = Xml.xpath_new_context doc in
+ filter xpathctx
+ ) os_files
+ ) distros
+ )
+ )
+
+let osinfo_db_read_flat os_path filter =
+ let os_files = Array.to_list (Sys.readdir os_path) in
+ remove_duplicates (
+ List.map (
+ fun os_file ->
+ let file_path = os_path // os_file in
+ let xml = read_whole_file file_path in
+ let doc = Xml.parse_memory xml in
+ let xpathctx =...
2017 Jan 03
13
[PATCH 0/5] Introducing virt-builder-repository
Hi all,
I wanted to provide an easy way to create or update a virt-builder
repository out of a folder of template disk image files. This is what
virt-builder-repository aims at. Some of the data are computed from
the image file, others are asked the user or extracted from an existing
index file.
So far, virt-builder-repository doesn't run libguestfs on each image
to extract the architecture,