git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efdf252
)
Fix detection of optional libvirt support in virt-inspector.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 24 Jun 2009 19:04:58 +0000
(20:04 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Wed, 24 Jun 2009 19:04:58 +0000
(20:04 +0100)
inspector/virt-inspector.pl
patch
|
blob
|
history
diff --git
a/inspector/virt-inspector.pl
b/inspector/virt-inspector.pl
index
c645cbd
..
6aa63ad
100755
(executable)
--- a/
inspector/virt-inspector.pl
+++ b/
inspector/virt-inspector.pl
@@
-206,8
+206,10
@@
if (-e $ARGV[0]) {
}
}
} else {
- die "no libvirt support (install Sys::Virt)"
- unless exists $INC{"Sys/Virt.pm"};
+ die "virt-inspector: no libvirt support (install Sys::Virt, XML::XPath and XML::XPath::XMLParser)\n"
+ unless exists $INC{"Sys/Virt.pm"} &&
+ exists $INC{"XML/XPath.pm"} &&
+ exists $INC{"XML/XPath/XMLParser.pm"};
pod2usage ("$0: too many domains listed on command line") if @ARGV > 1;