get-kernel: respect -q

Now that virt-get-kernel has -q/--quiet, support it by printing the
download messages only if not specified.
This commit is contained in:
Pino Toscano
2015-09-01 18:03:12 +02:00
parent 45f6cfe1a1
commit cf3d93c826

View File

@@ -142,7 +142,8 @@ let rec do_fetch ~transform_fn ~outputdir g root =
List.iter (
fun f ->
let dest = outputdir // transform_fn f in
printf "download: %s -> %s\n%!" f dest;
if not (quiet ()) then
printf "download: %s -> %s\n%!" f dest;
g#download f dest;
) files;