diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-06-01 15:12:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-06-01 15:12:42 +0000 |
commit | bcf382a8ec7bad8446c5636b91f14bd0c2f61064 (patch) | |
tree | d5906acc2df226e6e0518da5caf430a2a9fdcfc9 /Rpmdrake/open_db.pm | |
parent | 478c89356f66dd86488242e877b7b6a88e7218a8 (diff) | |
download | rpmdrake-bcf382a8ec7bad8446c5636b91f14bd0c2f61064.tar rpmdrake-bcf382a8ec7bad8446c5636b91f14bd0c2f61064.tar.gz rpmdrake-bcf382a8ec7bad8446c5636b91f14bd0c2f61064.tar.bz2 rpmdrake-bcf382a8ec7bad8446c5636b91f14bd0c2f61064.tar.xz rpmdrake-bcf382a8ec7bad8446c5636b91f14bd0c2f61064.zip |
(fast_open_urpmi_db) make 'urpmi-root' implying rpm-root so that
open_rpm_db() opens the proper chrooted db
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r-- | Rpmdrake/open_db.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm index 9016b899..315d06c4 100644 --- a/Rpmdrake/open_db.pm +++ b/Rpmdrake/open_db.pm @@ -76,6 +76,7 @@ sub open_rpm_db { sub fast_open_urpmi_db() { my $urpm = urpm->new; urpm::set_files($urpm, $::rpmdrake_options{'urpmi-root'}[0]) if $::rpmdrake_options{'urpmi-root'}[0]; + $::rpmdrake_options{'rpm-root'}[0] ||= $::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; |