aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/open_db.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-20 14:44:16 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-20 14:44:16 +0000
commit335eacd344244f028782814034f5eca9e9e36f4b (patch)
treeb15bf23a329f1363e40bb4509ebb800fa2ba55d9 /Rpmdrake/open_db.pm
parentb20a316383df86c6ac8dc7ad8e575c6785cc9db5 (diff)
downloadrpmdrake-335eacd344244f028782814034f5eca9e9e36f4b.tar
rpmdrake-335eacd344244f028782814034f5eca9e9e36f4b.tar.gz
rpmdrake-335eacd344244f028782814034f5eca9e9e36f4b.tar.bz2
rpmdrake-335eacd344244f028782814034f5eca9e9e36f4b.tar.xz
rpmdrake-335eacd344244f028782814034f5eca9e9e36f4b.zip
(fast_open_urpmi_db) commit missing bit in latest commit
("(fast_open_urpmi_db) load global options after mananing --urpmi-root, thus fixigin loading options from chrooted config file")
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r--Rpmdrake/open_db.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm
index 449ce97b..3ec09dc6 100644
--- a/Rpmdrake/open_db.pm
+++ b/Rpmdrake/open_db.pm
@@ -68,6 +68,7 @@ sub open_rpm_db {
# do not pay the urpm::media::configure() heavy cost:
sub fast_open_urpmi_db() {
my $urpm = urpm->new;
+ urpm::set_files($urpm, $::rpmdrake_options{'urpmi-root'}[0]) if $::rpmdrake_options{'urpmi-root'}[0];
urpm::args::set_root($urpm, $::rpmdrake_options{'rpm-root'}[0]) if $::rpmdrake_options{'rpm-root'}[0];
urpm::args::set_debug($urpm) if $::rpmdrake_options{'debug'};
$urpm->get_global_options;
@@ -75,7 +76,6 @@ sub fast_open_urpmi_db() {
$urpm->{options}{wait_lock} = $::rpmdrake_options{'wait-lock'};
$urpm->{options}{'verify-rpm'} = !$::rpmdrake_options{'no-verify-rpm'} if defined $::rpmdrake_options{'no-verify-rpm'};
$urpm->{options}{auto} = $::rpmdrake_options{auto} if defined $::rpmdrake_options{auto};
- urpm::set_files($urpm, $::rpmdrake_options{'urpmi-root'}[0]) if $::rpmdrake_options{'urpmi-root'}[0];
urpm::args::set_verbosity();
if ($::rpmdrake_options{env} && $::rpmdrake_options{env}[0]) {
$::env = $::rpmdrake_options{env}[0];