summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 8007e32b..8266fec4 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -44,14 +44,7 @@ sub build_transaction_set_ {
#- build simplest transaction (no split).
$urpm->build_transaction_set(undef, $state, split_length => 0);
} else {
- my $db;
-
- if ($options{rpmdb}) {
- $db = new URPM;
- $db->parse_synthesis($options{rpmdb});
- } else {
- $db = urpm::db_open_or_die_($urpm);
- }
+ my $db = db_open_or_die__();
my $sig_handler = sub { undef $db; exit 3 };
local $SIG{INT} = $sig_handler;