diff options
Diffstat (limited to 'urpm/args.pm')
-rw-r--r-- | urpm/args.pm | 9 |
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]; }, }, |