summaryrefslogtreecommitdiffstats
path: root/inspector
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2009-07-21 11:46:24 +0100
committerMatthew Booth <mbooth@redhat.com>2009-07-21 12:43:35 +0100
commit000f54aac80191b42e0c307440d09fafd4d5fac2 (patch)
tree3cf5784d106ab7af9509fbe1442306a2015c10e5 /inspector
parent98430c35faa073c60d4c00542c090fe0407c5af7 (diff)
downloadlibguestfs-000f54aac80191b42e0c307440d09fafd4d5fac2.tar.gz
libguestfs-000f54aac80191b42e0c307440d09fafd4d5fac2.tar.xz
libguestfs-000f54aac80191b42e0c307440d09fafd4d5fac2.zip
Split $os->{version} into $os->{major_version} and $os->{minor_version}
Diffstat (limited to 'inspector')
-rwxr-xr-xinspector/virt-inspector.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/inspector/virt-inspector.pl b/inspector/virt-inspector.pl
index 09edbae1..9148a486 100755
--- a/inspector/virt-inspector.pl
+++ b/inspector/virt-inspector.pl
@@ -357,7 +357,9 @@ sub output_text_os
print $os->{os}, " " if exists $os->{os};
print $os->{distro}, " " if exists $os->{distro};
- print $os->{version}, " " if exists $os->{version};
+ print $os->{major_version} if exists $os->{major_version};
+ print ".", $os->{minor_version} if exists $os->{minor_version};
+ print " ";
print "on ", $os->{root_device}, ":\n";
print __" Mountpoints:\n";
@@ -448,7 +450,8 @@ sub output_xml_os
foreach ( [ "name" => "os" ],
[ "distro" => "distro" ],
- [ "version" => "version" ],
+ [ "major_version" => "major_version" ],
+ [ "minor_version" => "minor_version" ],
[ "package_format" => "package_format" ],
[ "package_management" => "package_management" ],
[ "root" => "root_device" ] ) {