diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2004-01-13 15:57:28 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2004-01-13 15:57:28 +0000 |
commit | 45219a97f50e6c6328d14da239c0fea7192e4007 (patch) | |
tree | 68422c437f2b904d0fa9477990bd096b2ee2b2b7 /urpme | |
parent | bc1eba5a5ced035717c0b9000bd1015c5551d289 (diff) | |
download | urpmi-45219a97f50e6c6328d14da239c0fea7192e4007.tar urpmi-45219a97f50e6c6328d14da239c0fea7192e4007.tar.gz urpmi-45219a97f50e6c6328d14da239c0fea7192e4007.tar.bz2 urpmi-45219a97f50e6c6328d14da239c0fea7192e4007.tar.xz urpmi-45219a97f50e6c6328d14da239c0fea7192e4007.zip |
add --use-distrib code
Diffstat (limited to 'urpme')
-rw-r--r-- | urpme | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -25,7 +25,7 @@ use URPM; use URPM::Resolve; use urpm; -my (@nextargv, $root, $test, $parallel, $auto, $matches, $verbose, $maymatch, @l); +my (@nextargv, $root, $test, $parallel, $auto, $matches, $verbose, $maymatch, $usedistrib, @l); my $askok = N("Is this OK?"); # Translator: Add here the keys which might be pressed in the "No"-case. my $noexpr = N("Nn"); @@ -57,6 +57,7 @@ while (defined($_ = shift @ARGV)) { /^--(no-)?test$/ and do { $test = !$1; next }; /^--force$/ and do { $force = 1; next }; /^--root$/ and do { push @nextargv, \$root; next }; + /^--use-distrib$/ and do { push @nextargv, \$usedistrib; next }; /^--parallel$/ and do { push @nextargv, \$parallel; next }; /^-(.*)$/ and do { foreach (split //, $1) { /[\?h]/ and do { usage; next }; @@ -77,6 +78,7 @@ $verbose or $urpm->{log} = sub {}; $parallel and $urpm->configure(synthesis => ($parallel and 'none'), root => $root, parallel => $parallel, + usedistrib => $usedistrib, ); #- examine packages... |