[virt-tools-list] [PATCH libosinfo 09/10] Add 'distro' field to osinfo-query command

Daniel P. Berrange berrange at redhat.com
Thu Mar 22 11:30:25 UTC 2012


From: "Daniel P. Berrange" <berrange at redhat.com>

Enable the osinfo-query command to display the contents of
the 'distro' field
---
 tools/osinfo-query.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tools/osinfo-query.c b/tools/osinfo-query.c
index cfb807e..8194eb4 100644
--- a/tools/osinfo-query.c
+++ b/tools/osinfo-query.c
@@ -58,7 +58,9 @@ static struct OsinfoLabel os_labels[] = {
     { OSINFO_PRODUCT_PROP_VERSION,
       "Version", TRUE, 8 },
     { OSINFO_OS_PROP_FAMILY,
-      "Family", TRUE, 10 },
+      "Family", TRUE, 12 },
+    { OSINFO_OS_PROP_DISTRO,
+      "Distro", TRUE, 12 },
     { OSINFO_PRODUCT_PROP_VENDOR,
       "Vendor", TRUE, 25 },
     { OSINFO_PRODUCT_PROP_RELEASE_DATE,
-- 
1.7.7.6




More information about the virt-tools-list mailing list