diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-09 15:59:51 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-09 15:59:51 +0000 |
commit | 950cdd609322bf0a4d3a7f02f75d86a18e6f13e5 (patch) | |
tree | 376c47576d257a4eeecbe7f989b6665bee979226 /Rpmdrake/init.pm | |
parent | feaf5f5849c1f6ab9fa4cda1e312d4356d199490 (diff) | |
download | rpmdrake-950cdd609322bf0a4d3a7f02f75d86a18e6f13e5.tar rpmdrake-950cdd609322bf0a4d3a7f02f75d86a18e6f13e5.tar.gz rpmdrake-950cdd609322bf0a4d3a7f02f75d86a18e6f13e5.tar.bz2 rpmdrake-950cdd609322bf0a4d3a7f02f75d86a18e6f13e5.tar.xz rpmdrake-950cdd609322bf0a4d3a7f02f75d86a18e6f13e5.zip |
(fast_open_urpmi_db) handle -q, --quiet, -v & --verbose options
Diffstat (limited to 'Rpmdrake/init.pm')
-rw-r--r-- | Rpmdrake/init.pm | 5 |
1 files changed, 5 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; } |