summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2004-01-13 15:57:28 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2004-01-13 15:57:28 +0000
commit45219a97f50e6c6328d14da239c0fea7192e4007 (patch)
tree68422c437f2b904d0fa9477990bd096b2ee2b2b7 /urpme
parentbc1eba5a5ced035717c0b9000bd1015c5551d289 (diff)
downloadurpmi-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--urpme4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpme b/urpme
index 70e03b24..1d6efb9c 100644
--- a/urpme
+++ b/urpme
@@ -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...