summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-14 11:29:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-14 11:29:37 +0000
commit79b4dbe29da7619f21e8124b562c06b5628b94e1 (patch)
tree223c3db6850e9889ba0a7374f3673952f8ecb632 /urpm/args.pm
parentedabe9d4501ff5c70b18f85e15c4cd6fc0689cac (diff)
downloadurpmi-79b4dbe29da7619f21e8124b562c06b5628b94e1.tar
urpmi-79b4dbe29da7619f21e8124b562c06b5628b94e1.tar.gz
urpmi-79b4dbe29da7619f21e8124b562c06b5628b94e1.tar.bz2
urpmi-79b4dbe29da7619f21e8124b562c06b5628b94e1.tar.xz
urpmi-79b4dbe29da7619f21e8124b562c06b5628b94e1.zip
add undocumented & unstable --tune-rpm option
(allow to test nofsync and private db)
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index cb4d0e9f..049aaafa 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -54,6 +54,7 @@ my %options_spec_all = (
'urpmi-root=s' => sub { urpm::set_files($urpm, $_[1]) },
'wait-lock' => \$options{wait_lock},
'use-copied-hdlist' => sub { $urpm->{options}{use_copied_hdlist} = 1 },
+ 'tune-rpm=s' => sub { urpm::set_tune_rpm($urpm, $_[1]) },
);
my %options_spec = (
@@ -423,6 +424,8 @@ sub parse_cmdline {
$options{verbose} >= 0 or $urpm->{info} = sub {};
$options{verbose} > 0 or $urpm->{log} = sub {};
+ $urpm->{tune_rpm} and urpm::tune_rpm($urpm);
+
if ($tool ne 'urpmi.addmedia' && $tool ne 'urpmi.update' &&
$options{probe_with} && !$options{usedistrib}) {
die N("Can't use %s without %s", "--probe-$options{probe_with}", "--use-distrib");