summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-01 10:53:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-01 10:53:07 +0000
commite7680509b66f204cdb2e3925d333f07746dc4c36 (patch)
tree952b1c8d1e0fca5d9e7deaed288152d6ada4bc24 /urpm/install.pm
parentd99173d6e61042d0ba9c4a6372c9e2a47d3bf942 (diff)
downloadurpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.tar
urpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.tar.gz
urpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.tar.bz2
urpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.tar.xz
urpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.zip
create db_open_or_die_() and use it
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index a48fbf7c..bd45298e 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -43,7 +43,7 @@ sub build_transaction_set_ {
$db = new URPM;
$db->parse_synthesis($options{rpmdb});
} else {
- $db = urpm::db_open_or_die($urpm, $urpm->{root});
+ $db = urpm::db_open_or_die_($urpm);
}
my $sig_handler = sub { undef $db; exit 3 };
@@ -146,7 +146,7 @@ sub install {
my ($urpm, $remove, $install, $upgrade, %options) = @_;
$options{translate_message} = 1;
- my $db = urpm::db_open_or_die($urpm, $urpm->{root}, !$options{test}); #- open in read/write mode unless testing installation.
+ my $db = urpm::db_open_or_die_($urpm, !$options{test}); #- open in read/write mode unless testing installation.
my $trans = $db->create_transaction($urpm->{root});
if ($trans) {