diff options
-rwxr-xr-x | urpmf | 4 | ||||
-rwxr-xr-x | urpmq | 5 |
2 files changed, 6 insertions, 3 deletions
@@ -119,7 +119,9 @@ if ($qf eq '%default') { #- replace first %name by %fullname if -f was specified if ($full) { $qf =~ s/%name\b/%fullname/ } -$verbose or $urpm->{log} = sub {}; +#- we really don't want logs on stdout, and remove verbose if not asked. +$urpm->{info} = sub { print STDERR "$_[0]\n" }; +$urpm->{log} = $verbose ? sub { print STDERR "$_[0]\n" } : sub {}; my $multitag = ''; my %multitags = map { $_ => 1 } qw(conffiles conflicts files obsoletes provides requires); @@ -122,8 +122,9 @@ sub escape_shell ($) { my $urpm = new urpm; urpm::args::parse_cmdline(urpm => $urpm) or exit(1); -#- remove verbose if not asked. -$urpm::args::options{verbose} or $urpm->{log} = sub {}; +#- we really don't want logs on stdout, and remove verbose if not asked. +$urpm->{info} = sub { print STDERR "$_[0]\n" }; +$urpm->{log} = $urpm::args::options{verbose} ? sub { print STDERR "$_[0]\n" } : sub {}; #- improve speed if using any list_... options. $urpm::args::options{nodepslist} = $urpm::args::options{list_aliases} |