Skip to content

Commit

Permalink
actually do not pass verbose to fetch.
Browse files Browse the repository at this point in the history
only becasue I couldn't verify this myself yet.
  • Loading branch information
gugod committed Mar 16, 2022
1 parent 9cd9312 commit 3395145
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions lib/App/Perlbrew/HTTP.pm
Expand Up @@ -72,9 +72,7 @@ sub http_user_agent_command {
}

if ($HTTP_VERBOSE) {
if ($ua eq "fetch") {
$cmd = "-v " . $cmd;
} else {
unless ($ua eq "fetch") {
$cmd =~ s/(silent|quiet)/verbose/;
}
}
Expand Down
6 changes: 4 additions & 2 deletions t/http-program-control.t
Expand Up @@ -19,8 +19,10 @@ for my $prog (qw(curl wget fetch)) {

is $ua, $prog, "UA Program can be set to: $prog";

my ($cmd_verbosity) = $cmd =~ m/\s(--verbose|-v)\s/;
is !!$cmd_verbosity, !!$verbose, "verbosity matches: [$cmd]";
unless ($prog eq "fetch") {
my ($cmd_verbosity) = $cmd =~ m/\s(--verbose)\s/;
is !!$cmd_verbosity, !!$verbose, "verbosity matches: [$cmd]";
}
}
};
}
Expand Down

0 comments on commit 3395145

Please sign in to comment.