[Pkg-libvirt-commits] [libguestfs] 119/179: v2v: -i ova: Don't fail when given a relative path to an OVA directory (RHBZ#1155121).
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 31 19:08:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit e1eccae2da3a670c1ef7626c8779b71fb1877f7d
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Tue Oct 21 13:36:55 2014 +0100
v2v: -i ova: Don't fail when given a relative path to an OVA directory (RHBZ#1155121).
---
v2v/input_ova.ml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/v2v/input_ova.ml b/v2v/input_ova.ml
index 6349c76..d9928de 100644
--- a/v2v/input_ova.ml
+++ b/v2v/input_ova.ml
@@ -66,6 +66,11 @@ object
error (f_"%s: unsupported file format") ova
) in
+ (* Exploded path must be absolute (RHBZ#1155121). *)
+ let exploded =
+ if not (Filename.is_relative exploded) then exploded
+ else Sys.getcwd () // exploded in
+
let files = Sys.readdir exploded in
let ovf = ref "" in
(* Search for the ovf file. *)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list