summaryrefslogtreecommitdiffstats
path: root/urpmf
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-01 15:14:19 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-01 15:14:19 +0000
commit89ea15bf14b7cc5298d21a414d268f69e648fe07 (patch)
tree597b300a37ffc16d1cde43669827515e11cbb649 /urpmf
parent2006fe16a22483e438ddf3793bf05c9133cdd36a (diff)
downloadurpmi-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-xurpmf3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpmf b/urpmf
index 5b61b775..fd67412b 100755
--- a/urpmf
+++ b/urpmf
@@ -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);