summaryrefslogtreecommitdiffstats
path: root/urpmi
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 /urpmi
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 'urpmi')
-rwxr-xr-xurpmi3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index 98ea8d1c..d496c2fa 100755
--- a/urpmi
+++ b/urpmi
@@ -50,6 +50,7 @@ my $noclean = 0;
my $verbose = 0;
my $skip = '';
my $root = '';
+my $usedistrib = undef;
my $bug = '';
my $env = '';
my $log = '';
@@ -204,6 +205,7 @@ while (defined($_ = shift @argv)) {
/^--comment$/ and do { push @nextargv, undef; next };
/^--skip$/ and do { push @nextargv, \$skip; next };
/^--root$/ and do { push @nextargv, \$root; next };
+ /^--use-distrib$/ and do { push @nextargv, \$usedistrib; next };
/^--exclude-?path$/ and do { $urpm->{options}{excludepath} = undef; push @nextargv, \$urpm->{options}{excludepath}; next };
/^--exclude-?docs$/ and do { $urpm->{options}{excludedocs} = 1; next };
/^-(.*)$/ and do { foreach (split //, $1) {
@@ -334,6 +336,7 @@ $urpm->configure(nocheck_access => $env || $uid > 0,
root => $root,
bug => $bug,
parallel => $parallel,
+ usedistrib => $usedistrib,
);
#- get back activated default values of boolean options.
foreach (qw(post-clean verify-rpm)) {