mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user