summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-24 19:09:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-24 19:09:58 +0000
commit298bb002ec4f7b0e9fd1e949a984800295deba4c (patch)
treec3c6ea375afd132fa7ee0d218dda8df35f96d219 /urpmi
parentfd0896023c12ea77e9c355bc11b8d78cd2bff5f4 (diff)
downloadurpmi-298bb002ec4f7b0e9fd1e949a984800295deba4c.tar
urpmi-298bb002ec4f7b0e9fd1e949a984800295deba4c.tar.gz
urpmi-298bb002ec4f7b0e9fd1e949a984800295deba4c.tar.bz2
urpmi-298bb002ec4f7b0e9fd1e949a984800295deba4c.tar.xz
urpmi-298bb002ec4f7b0e9fd1e949a984800295deba4c.zip
use $options{usedistrib} for all progs (prepare for next commit)
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpmi b/urpmi
index 0a6fe712..e8899d95 100755
--- a/urpmi
+++ b/urpmi
@@ -60,7 +60,6 @@ our $all = 0;
our $rpm_opt = "vh";
our $use_provides = 1;
our $verbose = 0;
-our $usedistrib = 0;
our $logfile = '';
our $restricted = 0;
our $nolock = 0;
@@ -230,7 +229,7 @@ if ($restricted) {
#- force some options
foreach (qw(keep verify-rpm)) { $urpm->{options}{$_} = 1 }
#- forbid some other options
- urpm::error_restricted($urpm) if $root || $usedistrib || $force || $env || $parallel || $synthesis || $auto_update;
+ urpm::error_restricted($urpm) if $root || $options{usedistrib} || $force || $env || $parallel || $synthesis || $auto_update;
foreach (qw(allow-nodeps allow-force curl-options rsync-options wget-options prozilla-options noscripts)) {
urpm::error_restricted($urpm) if $urpm->{options}{$_};
}
@@ -352,7 +351,7 @@ my %config_hash = (
sortmedia => $sortmedia,
synthesis => $synthesis,
update => $update,
- usedistrib => $usedistrib,
+ usedistrib => $options{usedistrib},
probe_with => $options{probe_with},
);