builder: handle output filenames with ':'

Use qemu_input_filename for the output file in the qemu-img convert
invocation.

See also commit 1709263613 for
virt-sparsify.
This commit is contained in:
Pino Toscano
2015-09-09 13:19:57 +02:00
parent 87a42174f9
commit 27becc7e2f

View File

@@ -618,7 +618,7 @@ let main () =
(match iformat with
| None -> ""
| Some iformat -> sprintf " -f %s" (quote iformat))
(quote ifile) (quote oformat) (quote ofile)
(quote ifile) (quote oformat) (quote (qemu_input_filename ofile))
(if verbose () then "" else " >/dev/null 2>&1") in
if verbose () then printf "%s\n%!" cmd;
if Sys.command cmd <> 0 then exit 1