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.
This commit is contained in:
parent
c2cb442899
commit
6baf4151f9
1 changed files with 1 additions and 0 deletions
|
@ -1413,6 +1413,7 @@ sub run_hooks {
|
||||||
# This is the file descriptor of the socket that the mmdebstrap
|
# This is the file descriptor of the socket that the mmdebstrap
|
||||||
# --hook-helper can write to and read from to communicate with the outside.
|
# --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_HOOKSOCK=" . fileno($options->{hooksock}));
|
||||||
|
push @env_opts, ("MMDEBSTRAP_VERBOSITY=" . $verbosity_level);
|
||||||
|
|
||||||
my $runner = sub {
|
my $runner = sub {
|
||||||
foreach my $script (@{ $options->{"${name}_hook"} }) {
|
foreach my $script (@{ $options->{"${name}_hook"} }) {
|
||||||
|
|
Loading…
Reference in a new issue