summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-17 15:01:39 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-17 15:01:39 +0000
commitc66026239d9b1dc8c53236b2f6b7d983dda8ca05 (patch)
treeefa970f21ed01839b77b0888008f6060b6a9fe6a /urpm/args.pm
parent8078a08e3297dc5ccf24b0650f3e05942379802c (diff)
downloadurpmi-c66026239d9b1dc8c53236b2f6b7d983dda8ca05.tar
urpmi-c66026239d9b1dc8c53236b2f6b7d983dda8ca05.tar.gz
urpmi-c66026239d9b1dc8c53236b2f6b7d983dda8ca05.tar.bz2
urpmi-c66026239d9b1dc8c53236b2f6b7d983dda8ca05.tar.xz
urpmi-c66026239d9b1dc8c53236b2f6b7d983dda8ca05.zip
Remove obsoleted and broken --distrib-XXX command-line option
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm9
1 files changed, 2 insertions, 7 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index 24993f56..bc90e660 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -260,7 +260,7 @@ my %options_spec = (
'probe-synthesis' => sub { $options{probe_with} = 'synthesis' },
'probe-hdlist' => sub { $options{probe_with} = 'hdlist' },
'no-probe' => sub { $options{probe_with} = undef },
- distrib => sub { $options{distrib} = undef },
+ distrib => sub { $options{distrib} = 1 },
'from=s' => \$options{mirrors_url},
'version=s' => \$options{version},
'arch=s' => \$options{arch},
@@ -268,12 +268,7 @@ my %options_spec = (
'q|quiet' => sub { --$options{verbose} },
'v|verbose' => sub { ++$options{verbose} },
'<>' => sub {
- if ($_[0] =~ /^--distrib-(.*)$/) {
- $options{distrib} = $1;
- }
- else {
- push @::cmdline, $_[0];
- }
+ push @::cmdline, $_[0];
},
},