summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-14 13:18:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-14 13:18:13 +0000
commitd90e305277a60edcb97438e1f7fee005bcbad70b (patch)
tree03f69cd40ca522d185fd3316ab7e8b59f78ef711 /urpm/args.pm
parent3349c4784233f99efeef61285f1c6f30390968da (diff)
downloadurpmi-d90e305277a60edcb97438e1f7fee005bcbad70b.tar
urpmi-d90e305277a60edcb97438e1f7fee005bcbad70b.tar.gz
urpmi-d90e305277a60edcb97438e1f7fee005bcbad70b.tar.bz2
urpmi-d90e305277a60edcb97438e1f7fee005bcbad70b.tar.xz
urpmi-d90e305277a60edcb97438e1f7fee005bcbad70b.zip
o deprecate "urpmq -R" and "urpmq -RR"
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 56b744f2..751893ae 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -251,8 +251,12 @@ my %options_spec = (
g => \$options{group},
'whatprovides|p' => \$options{use_provides},
P => sub { $options{use_provides} = 0 },
- 'whatrequires|R' => sub { $options{what_requires} and $options{what_requires_recursive} = 1;
- $options{what_requires} = 1 },
+ R => sub { $urpm->{error}($options{what_requires} ?
+ "option -RR is deprecated, use --whatrequires-recursive instead" :
+ "option -R is deprecated, use --whatrequires instead");
+ $options{what_requires} and $options{what_requires_recursive} = 1;
+ $options{what_requires} = 1 },
+ whatrequires => sub { $options{what_requires} = 1 },
'whatrequires-recursive' => sub { $options{what_requires_recursive} = $options{what_requires} = 1 },
y => sub { $urpm->{options}{fuzzy} = 1; $options{all} = 1 },
Y => sub { $urpm->{options}{fuzzy} = 1; $options{all} = $options{caseinsensitive} = 1 },