From c66026239d9b1dc8c53236b2f6b7d983dda8ca05 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 17 Feb 2005 15:01:39 +0000 Subject: Remove obsoleted and broken --distrib-XXX command-line option --- urpm/args.pm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'urpm') 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]; }, }, -- cgit v1.2.1