diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-01 15:14:19 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-01 15:14:19 +0000 |
commit | 89ea15bf14b7cc5298d21a414d268f69e648fe07 (patch) | |
tree | 597b300a37ffc16d1cde43669827515e11cbb649 /urpmf | |
parent | 2006fe16a22483e438ddf3793bf05c9133cdd36a (diff) | |
download | urpmi-89ea15bf14b7cc5298d21a414d268f69e648fe07.tar urpmi-89ea15bf14b7cc5298d21a414d268f69e648fe07.tar.gz urpmi-89ea15bf14b7cc5298d21a414d268f69e648fe07.tar.bz2 urpmi-89ea15bf14b7cc5298d21a414d268f69e648fe07.tar.xz urpmi-89ea15bf14b7cc5298d21a414d268f69e648fe07.zip |
- normalize verbose option handling over $options{verbose}
- handle $rpm_opt where it is used
Diffstat (limited to 'urpmf')
-rwxr-xr-x | urpmf | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -98,7 +98,6 @@ our $sortmedia = ''; our $synthesis = ''; our $uniq = ''; # --uniq our $update = 0; # --update -our $verbose = 0; # --verbose #- globals used in callback our $expr; # regexp to match against @@ -121,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} = $verbose ? sub { print STDERR "$_[0]\n" } : sub {}; +$urpm->{log} = $options{verbose} ? sub { print STDERR "$_[0]\n" } : sub {}; my $multitag = ''; my %multitags = map { $_ => 1 } qw(conffiles conflicts files obsoletes provides requires); |