Displaying 2 results from an estimated 2 matches for "osinfo_db_read_three_levels".
2017 Jan 03
0
[PATCH 4/5] mllib: add libosinfo DB reading helpers
...ublic License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *)
+open Common_utils
+open Osinfopath
+
+let osinfo_db_read_three_levels os_path filter =
+ let distros = Array.to_list (Sys.readdir os_path) in
+ remove_duplicates (
+ List.concat (
+ List.map (
+ fun distro ->
+ let distro_path = os_path // distro in
+ let os_files = Array.to_list (Sys.readdir distro_path) in
+ List.map (...
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,