summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-03-22 11:26:58 (GMT)
committerDaniel P. Berrange <berrange@redhat.com>2012-03-22 16:04:10 (GMT)
commitcff762e831527e166d3efc1651f8779213d0fdeb (patch)
treec514863a0ba628b18296a619438fbd0cef435e2c
parent6dfa010c8e252adc11db2a02a1ce6745f2e62a2e (diff)
downloadlibosinfo-cff762e831527e166d3efc1651f8779213d0fdeb.zip
libosinfo-cff762e831527e166d3efc1651f8779213d0fdeb.tar.gz
libosinfo-cff762e831527e166d3efc1651f8779213d0fdeb.tar.xz
Add 'distro' field to osinfo-query command
Enable the osinfo-query command to display the contents of the 'distro' field
-rw-r--r--tools/osinfo-query.c4
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,