From d82b7fab541770bcc3a90879c79bafb1e2baf776 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 19 Jun 2007 16:43:38 +0000 Subject: we really don't want logs on stdout for urpmq/urpmf (esp. for "adding medium ..." when using --use-distrib) --- urpmf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'urpmf') diff --git a/urpmf b/urpmf index 1ee7604c..5b61b775 100755 --- a/urpmf +++ b/urpmf @@ -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); -- cgit v1.2.1