summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-09-05 16:15:12 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-09-07 05:20:17 +0200
commitd7d4a6f538362365ead3ac4fa2fa4aa2cfc6773c (patch)
tree7b52920ded6b2e22d866b5776b74f5a3ff81b429 /urpm/args.pm
parentf63e588f31b3af0e6ba830c2c43d2677e33b86f0 (diff)
downloadurpmi-d7d4a6f538362365ead3ac4fa2fa4aa2cfc6773c.tar
urpmi-d7d4a6f538362365ead3ac4fa2fa4aa2cfc6773c.tar.gz
urpmi-d7d4a6f538362365ead3ac4fa2fa4aa2cfc6773c.tar.bz2
urpmi-d7d4a6f538362365ead3ac4fa2fa4aa2cfc6773c.tar.xz
urpmi-d7d4a6f538362365ead3ac4fa2fa4aa2cfc6773c.zip
rename 'allow-suggests' as 'allow-recommends'
but keep an alias (with a warning) for compatibility
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index c6a05e52..ccaa8e42 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -118,9 +118,12 @@ my %options_spec = (
justdb => \$options{justdb},
replacepkgs => \$options{replacepkgs},
suggests => sub {
- $urpm->{fatal}(1, "Use --allow-suggests instead of --suggests");
+ $urpm->{fatal}(1, "Use --allow-recommends instead of --suggests");
},
- 'allow-suggests' => sub { $urpm->{options}{'no-recommends'} = 0 },
+ 'allow-suggests' => sub {
+ warn "WARNING: --allow-suggests is deprecated. Use --allow-recommends instead\n";
+ $urpm->{options}{'no-recommends'} = 0 },
+ 'allow-recommends' => sub { $urpm->{options}{'no-recommends'} = 0 },
'no-recommends' => sub { $urpm->{options}{'no-recommends'} = 1 },
'no-suggests' => sub { # COMPAT
warn "WARNING: --no-suggests is deprecated. Use --no-recommends instead\n";
@@ -422,7 +425,7 @@ foreach my $k ("test!", "force", "root=s", "use-distrib=s", 'env=s',
{
$options_spec{urpme}{$k} = $options_spec{urpmi}{$k};
}
-foreach my $k ("root=s", "nolock", "use-distrib=s", "skip=s", "prefer=s", "synthesis=s", 'no-recommends', 'no-suggests', 'allow-suggests', 'auto-orphans')
+foreach my $k ("root=s", "nolock", "use-distrib=s", "skip=s", "prefer=s", "synthesis=s", 'no-recommends', 'no-suggests', 'allow-recommends', 'allow-suggests', 'auto-orphans')
{
$options_spec{urpmq}{$k} = $options_spec{urpmi}{$k};
}