From e6d6502758210991a8fff3159b62f386138f6477 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 1 Aug 2007 15:44:40 +0000 Subject: factorize handling of -q|--quiet and -v|--verbose for all tools this fixes -q option not handled by urpmi.update (#31890) --- urpmf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpmf') diff --git a/urpmf b/urpmf index fd67412b..ab681795 100755 --- a/urpmf +++ b/urpmf @@ -120,7 +120,7 @@ if ($full) { $qf =~ s/%name\b/%fullname/ } #- we really don't want logs on stdout, and remove verbose if not asked. $urpm->{info} = sub { print STDERR "$_[0]\n" }; -$urpm->{log} = $options{verbose} ? sub { print STDERR "$_[0]\n" } : sub {}; +$urpm->{log} = sub { print STDERR "$_[0]\n" } if $options{verbose} > 0; my $multitag = ''; my %multitags = map { $_ => 1 } qw(conffiles conflicts files obsoletes provides requires); -- cgit v1.2.1