diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-11 16:25:18 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-11 16:25:18 +0000 |
commit | 57ce115d84224fe8dd75f19490f788fe8acf198c (patch) | |
tree | b66cbe8793ca5291d0e7ea7f73bba593296fe949 /urpm/args.pm | |
parent | f0c0ba3c176af4afd6659f532541043c7143e0e8 (diff) | |
download | urpmi-57ce115d84224fe8dd75f19490f788fe8acf198c.tar urpmi-57ce115d84224fe8dd75f19490f788fe8acf198c.tar.gz urpmi-57ce115d84224fe8dd75f19490f788fe8acf198c.tar.bz2 urpmi-57ce115d84224fe8dd75f19490f788fe8acf198c.tar.xz urpmi-57ce115d84224fe8dd75f19490f788fe8acf198c.zip |
- urpmi
o handle preferred choices (through --prefer, /etc/urpmi/prefer.list
and /etc/urpmi/prefer.vendor.list)
Diffstat (limited to 'urpm/args.pm')
-rw-r--r-- | urpm/args.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/args.pm b/urpm/args.pm index 80419d78..efe0349e 100644 --- a/urpm/args.pm +++ b/urpm/args.pm @@ -133,6 +133,7 @@ my %options_spec = ( 'norebuild!' => sub { $urpm->{options}{'build-hdlist-on-error'} = !$_[1] }, 'test!' => \$::test, 'skip=s' => \$options{skip}, + 'prefer=s' => \$options{prefer}, 'root=s' => sub { require File::Spec; $urpm->{root} = File::Spec->rel2abs($_[1]); @@ -359,7 +360,7 @@ foreach my $k ("help|h", "version", "no-locales", "test!", "force", "root=s", "u { $options_spec{urpme}{$k} = $options_spec{urpmi}{$k}; } -foreach my $k ("root=s", "nolock", "use-distrib=s", "skip=s") +foreach my $k ("root=s", "nolock", "use-distrib=s", "skip=s", "prefer=s") { $options_spec{urpmq}{$k} = $options_spec{urpmi}{$k}; } |