summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-09 20:49:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-09 20:49:27 +0000
commit06eb82455bbfc68f97e0381d773d6240ebcfbe23 (patch)
treed21b31bffbab19cb0ad63fd7ab443b2010e68a25
parent29cb5aa0bcd107fb0af89b0433daefe08487d74d (diff)
downloadurpmi-06eb82455bbfc68f97e0381d773d6240ebcfbe23.tar
urpmi-06eb82455bbfc68f97e0381d773d6240ebcfbe23.tar.gz
urpmi-06eb82455bbfc68f97e0381d773d6240ebcfbe23.tar.bz2
urpmi-06eb82455bbfc68f97e0381d773d6240ebcfbe23.tar.xz
urpmi-06eb82455bbfc68f97e0381d773d6240ebcfbe23.zip
have --no-locales for all tools
-rw-r--r--urpm/args.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 9626fc6b..82d0d8ca 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -57,6 +57,7 @@ my %options_spec_all = (
'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]) },
+ "no-locales" => sub { $urpm::msg::no_translation = 1 },
);
my %options_spec = (
@@ -73,7 +74,6 @@ my %options_spec = (
"help|h" => sub {
if (defined &::usage) { ::usage() } else { die "No help defined\n" }
},
- "no-locales" => sub { $urpm::msg::no_translation = 1 },
update => \$::update,
'media|mediums=s' => \$::media,
'excludemedia|exclude-media=s' => \$::excludemedia,
@@ -408,7 +408,7 @@ foreach my $k ('allow-medium-change', 'auto', 'auto-select', 'force', 'expect-in
}
$options_spec{gurpmi2} = $options_spec{gurpmi};
-foreach my $k ("help|h", "version", "no-locales", "test!", "force", "root=s", "use-distrib=s",
+foreach my $k ("help|h", "version", "test!", "force", "root=s", "use-distrib=s",
'repackage', 'noscripts', 'auto', 'auto-orphans',
"parallel=s")
{
@@ -419,7 +419,7 @@ foreach my $k ("root=s", "nolock", "use-distrib=s", "skip=s", "prefer=s", "synth
$options_spec{urpmq}{$k} = $options_spec{urpmi}{$k};
}
-foreach my $k ("help|h", "version", "no-locales", "update", "media|mediums=s",
+foreach my $k ("help|h", "version", "update", "media|mediums=s",
"excludemedia|exclude-media=s", "sortmedia|sort-media=s", "use-distrib=s",
"synthesis=s", "env=s")
{