[Pkg-libvirt-commits] [libguestfs] 149/384: builder: export the "osinfo" attribute to json
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 16:56:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit ea761df6875b2fa7fd9fcd3bc4c5b43812a426dd
Author: Pino Toscano <ptoscano at redhat.com>
Date: Fri Jan 9 11:14:35 2015 +0100
builder: export the "osinfo" attribute to json
Thanks to: Federico Simoncelli.
---
builder/list_entries.ml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/builder/list_entries.ml b/builder/list_entries.ml
index 3d99386..45c7e8b 100644
--- a/builder/list_entries.ml
+++ b/builder/list_entries.ml
@@ -118,6 +118,7 @@ and list_entries_json ~sources index =
compressed_size = compressed_size;
notes = notes;
aliases = aliases;
+ osinfo = osinfo;
hidden = hidden }) ->
let item = [ "os-version", JSON.String name ] in
let item =
@@ -148,6 +149,10 @@ and list_entries_json ~sources index =
| Some l ->
let l = List.map (fun x -> JSON.String x) l in
("aliases", JSON.List l) :: item in
+ let item =
+ match osinfo with
+ | None -> item
+ | Some str -> ("osinfo", JSON.String str) :: item in
let item = ("hidden", JSON.Bool hidden) :: item in
JSON.Dict (List.rev item)
) index in
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list