aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/init.pm5
-rw-r--r--Rpmdrake/open_db.pm1
2 files changed, 6 insertions, 0 deletions
diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm
index 2a87d14b..9d1bfc05 100644
--- a/Rpmdrake/init.pm
+++ b/Rpmdrake/init.pm
@@ -28,6 +28,7 @@ use MDK::Common::Func 'any';
use lib qw(/usr/lib/libDrakX);
use common;
BEGIN { $::no_global_argv_parsing = 1 }
+require urpm::args;
use Exporter;
our @ISA = qw(Exporter);
@@ -111,6 +112,10 @@ foreach (@ARGV) {
exit(0);
} elsif ($val =~ /^(test|expert)$/) {
eval "\$::$1 = 1";
+ } elsif ($val =~ /^(q|quiet)$/) {
+ urpm::args::set_verbose(-1);
+ } elsif ($val =~ /^(v|verbose)$/) {
+ urpm::args::set_verbose(1);
} else {
$rpmdrake_options{$val} = 1;
}
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm
index e663600b..d33f1b1c 100644
--- a/Rpmdrake/open_db.pm
+++ b/Rpmdrake/open_db.pm
@@ -69,6 +69,7 @@ sub fast_open_urpmi_db() {
urpm::set_files($urpm, $::rpmdrake_options{'urpmi-root'}[0]) if $::rpmdrake_options{'urpmi-root'}[0];
urpm::args::set_root($urpm, $::rpmdrake_options{'rpm-root'}[0]) if $::rpmdrake_options{'rpm-root'}[0];
urpm::args::set_debug($urpm) if $::rpmdrake_options{'debug'};
+ urpm::args::set_verbosity();
$urpm::args::rpmdrake_options{justdb} = $::rpmdrake_options{justdb};