diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-09 22:27:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-09 22:27:29 +0000 |
commit | 7a62087448c9a58ec1b9afe15977a24b55646f77 (patch) | |
tree | 5a3d6d765d3fe43aa1867f1786b6ff9a8cae5712 /urpm/install.pm | |
parent | 9f24337bca08689c3f9544271852ae8b1ae9fd8c (diff) | |
download | urpmi-7a62087448c9a58ec1b9afe15977a24b55646f77.tar urpmi-7a62087448c9a58ec1b9afe15977a24b55646f77.tar.gz urpmi-7a62087448c9a58ec1b9afe15977a24b55646f77.tar.bz2 urpmi-7a62087448c9a58ec1b9afe15977a24b55646f77.tar.xz urpmi-7a62087448c9a58ec1b9afe15977a24b55646f77.zip |
(db_open_or_die__) factorize some code (the name might have to be changed...)
Diffstat (limited to 'urpm/install.pm')
-rw-r--r-- | urpm/install.pm | 9 |
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; |