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.
feature/filemirror
David Kalnischkies 2 years ago
parent c2cb442899
commit 6baf4151f9

@ -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"} }) {

Loading…
Cancel
Save