diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | Rpmdrake/init.pm | 5 | ||||
-rw-r--r-- | Rpmdrake/open_db.pm | 1 |
3 files changed, 7 insertions, 1 deletions
@@ -2,7 +2,7 @@ o adapt to urpmi-6.6+ new API (which workaround urpmi API breakage #43639) o do not ignore some options - o handle --debug + o handle --debug, -q, --quiet, -v & --verbose options - rpmdrake: o update GUI package list 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}; |