summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 14:12:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 14:12:17 +0000
commit9fe33de81b7c4c7acc0cce5a45e751b631d53122 (patch)
tree3bde6f1b6fc19e88b7a091f2cb6ff8c259f46457
parenta7daafde9b77d5c50deeb53cc67fd8475a922465 (diff)
downloadurpmi-9fe33de81b7c4c7acc0cce5a45e751b631d53122.tar
urpmi-9fe33de81b7c4c7acc0cce5a45e751b631d53122.tar.gz
urpmi-9fe33de81b7c4c7acc0cce5a45e751b631d53122.tar.bz2
urpmi-9fe33de81b7c4c7acc0cce5a45e751b631d53122.tar.xz
urpmi-9fe33de81b7c4c7acc0cce5a45e751b631d53122.zip
- urpmi
o handle --debug-librpm
-rw-r--r--NEWS1
-rw-r--r--pod/urpmi.8.pod4
-rw-r--r--urpm/args.pm1
-rwxr-xr-xurpmi2
4 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 6b0c5e93..03cd4bf6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- urpmi:
o handle README.urpmi in utf8 (but not other encodings) (#41553)
+ o handle --debug-librpm
- urpmi.addmedia:
o make --mirrorlist with no url equivalent to --mirrorlist '$MIRRORLIST' (#40283)
o --interactive: fix selecting "noauto" media (#39522)
diff --git a/pod/urpmi.8.pod b/pod/urpmi.8.pod
index b80b81a5..64204268 100644
--- a/pod/urpmi.8.pod
+++ b/pod/urpmi.8.pod
@@ -190,6 +190,10 @@ Proposes a verbose mode with various messages.
Proposes a very verbose mode.
+=item B<--debug-librpm>
+
+Proposes a very verbose mode (similar to rpm -vv)
+
=item B<--no-suggests>
With this option, urpmi will not install "suggested" packages.
diff --git a/urpm/args.pm b/urpm/args.pm
index d2493fcb..9626fc6b 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -50,6 +50,7 @@ my %options_spec_all = (
$options{verbose}++;
$urpm->{debug} = $urpm->{debug_URPM} = sub { print STDERR "$_[0]\n" };
},
+ 'debug-librpm' => sub { URPM::setVerbosity(7) }, # 7 == RPMLOG_DEBUG
'q|quiet' => sub { --$options{verbose} },
'v|verbose' => sub { ++$options{verbose} },
'urpmi-root=s' => sub { urpm::set_files($urpm, $_[1]) },
diff --git a/urpmi b/urpmi
index 23e0b811..7c3c0cda 100755
--- a/urpmi
+++ b/urpmi
@@ -28,8 +28,6 @@ use urpm::select;
use urpm::util qw(untaint difference2 member partition cat_);
use urpm::main_loop;
-#URPM::setVerbosity(7);
-
#- default options.
our $update = 0;
our $media = '';