summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-05 10:15:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-05 10:15:41 +0000
commitde58653813d013143bdac6398b90c01b330369b8 (patch)
treefbb5e1d425dccdc19bce34b121fd66f26f3c3a47
parente4f4901277e61cc1d651a03261b5c36a0468ee03 (diff)
downloadurpmi-de58653813d013143bdac6398b90c01b330369b8.tar
urpmi-de58653813d013143bdac6398b90c01b330369b8.tar.gz
urpmi-de58653813d013143bdac6398b90c01b330369b8.tar.bz2
urpmi-de58653813d013143bdac6398b90c01b330369b8.tar.xz
urpmi-de58653813d013143bdac6398b90c01b330369b8.zip
fix using --debug__do_not_install with --env
-rw-r--r--urpm/main_loop.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index f746f9b0..12ff4291 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -35,8 +35,8 @@ sub run {
my ($urpm, $state, $something_was_to_be_done, $ask_unselect, $requested, $callbacks) = @_;
#- global boolean options
- my ($auto_select, $no_install, $install_src, $clean, $noclean, $force, $parallel, $test) =
- ($::auto_select, $::no_install, $::install_src, $::clean, $::noclean, $::force, $::parallel, $::test);
+ my ($auto_select, $no_install, $install_src, $clean, $noclean, $force, $parallel, $test, $env) =
+ ($::auto_select, $::no_install, $::install_src, $::clean, $::noclean, $::force, $::parallel, $::test, $::env);
my ($local_sources, $list) = urpm::get_pkgs::selected2list($urpm,
$state->{selected},
@@ -59,6 +59,7 @@ $callbacks->{post_removable} and $callbacks->{post_removable}->();
#- now create transaction just before installation, this will save user impression of slowness.
#- split of transaction should be disabled if --test is used.
urpm::install::build_transaction_set_($urpm, $state,
+ rpmdb => $env && "$env/rpmdb.cz",
nodeps => $urpm->{options}{'allow-nodeps'} || $urpm->{options}{'allow-force'},
split_level => $urpm->{options}{'split-level'},
split_length => !$test && $urpm->{options}{'split-length'});