From 6baf4151f9195f9aef8ec52ca4e69d6202969f98 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 13 May 2022 11:13:57 +0200 Subject: [PATCH] Set MMDEBSTRAP_VERBOSITY to inform hooks of verbosity level Hooks might want to be more or less verbose depending on how verbose mmdebstrap is configured to be. --- mmdebstrap | 1 + 1 file changed, 1 insertion(+) diff --git a/mmdebstrap b/mmdebstrap index 24f7250..84e7f66 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1413,6 +1413,7 @@ sub run_hooks { # This is the file descriptor of the socket that the mmdebstrap # --hook-helper can write to and read from to communicate with the outside. push @env_opts, ("MMDEBSTRAP_HOOKSOCK=" . fileno($options->{hooksock})); + push @env_opts, ("MMDEBSTRAP_VERBOSITY=" . $verbosity_level); my $runner = sub { foreach my $script (@{ $options->{"${name}_hook"} }) {