summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--urpm/args.pm4
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6df578b3..b3b49029 100644
--- a/NEWS
+++ b/NEWS
@@ -2,7 +2,7 @@
o fix --license
- urpmq:
o add --sourcerpm
- o deprecate "urpmq -R" and "urpmq -RR"
+ o deprecate "urpmq --requires", "urpmq -R" and "urpmq -RR"
Version 5.0 - 11 January 2008, by Pascal "Pixel" Rigaux
diff --git a/urpm/args.pm b/urpm/args.pm
index 751893ae..cc403a3f 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -243,6 +243,10 @@ my %options_spec = (
force => \$options{force},
'parallel=s' => \$options{parallel},
'env=s' => \$options{env},
+ requires => sub {
+ $urpm->{error}("option --requires is deprecated, use --requires-recursive instead");
+ $options{deps} = 1;
+ },
'requires-recursive|d' => \$options{deps},
u => \$options{upgrade},
a => \$options{all},