summaryrefslogtreecommitdiffstats
path: root/inspector
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2009-07-20 11:16:55 +0100
committerMatthew Booth <mbooth@redhat.com>2009-07-20 11:16:55 +0100
commit06f6cc32f02c25b88e763237332b17dc7c6c6837 (patch)
treee5a8b801a6ad0d25a7cdd7ecf543aa8ae4a9ac60 /inspector
parent503bd498dac5689f84983b583035a9a4a1f9e756 (diff)
downloadlibguestfs-06f6cc32f02c25b88e763237332b17dc7c6c6837.tar.gz
libguestfs-06f6cc32f02c25b88e763237332b17dc7c6c6837.tar.xz
libguestfs-06f6cc32f02c25b88e763237332b17dc7c6c6837.zip
Replace 'distrofamily' with feature tags
It turns out that the distribution hierarchy is not as reliable concept as you might think. This patch removes distrofamily again. Instead of distrofamily, we will add feature tags. This patch adds 2 feature tags for Linux distributions: package_format (eg rpm/dpkg) package_management (eg rhn/yum/apt) This change is reflected in the output of virt-inspector
Diffstat (limited to 'inspector')
-rwxr-xr-xinspector/virt-inspector.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/inspector/virt-inspector.pl b/inspector/virt-inspector.pl
index 5f612e35..cd53bcbf 100755
--- a/inspector/virt-inspector.pl
+++ b/inspector/virt-inspector.pl
@@ -353,7 +353,6 @@ 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->{distrofamily}." family)", " " if exists $os->{distrofamily};
print "on ", $os->{root_device}, ":\n";
print __" Mountpoints:\n";
@@ -444,8 +443,9 @@ sub output_xml_os
foreach ( [ "name" => "os" ],
[ "distro" => "distro" ],
- [ "distrofamily" => "distrofamily" ],
[ "version" => "version" ],
+ [ "package_format" => "package_format" ],
+ [ "package_management" => "package_management" ],
[ "root" => "root_device" ] ) {
$xml->dataElement($_->[0], $os->{$_->[1]}) if exists $os->{$_->[1]};
}