diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-01 12:12:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-01 12:12:09 +0000 |
commit | 146c51874702fa7383065e3656e74205f5537148 (patch) | |
tree | f4bb487453bf36141aa7b9791315d3e57142cbb6 | |
parent | 232693530f1b74e83279e3318c1ed4f566a0e1d4 (diff) | |
download | urpmi-146c51874702fa7383065e3656e74205f5537148.tar urpmi-146c51874702fa7383065e3656e74205f5537148.tar.gz urpmi-146c51874702fa7383065e3656e74205f5537148.tar.bz2 urpmi-146c51874702fa7383065e3656e74205f5537148.tar.xz urpmi-146c51874702fa7383065e3656e74205f5537148.zip |
use db_open_or_die_()
-rw-r--r-- | urpm/bug_report.pm | 2 | ||||
-rw-r--r-- | urpm/media.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/urpm/bug_report.pm b/urpm/bug_report.pm index b01e9a94..05b34d0a 100644 --- a/urpm/bug_report.pm +++ b/urpm/bug_report.pm @@ -7,7 +7,7 @@ use urpm::msg; sub rpmdb_to_synthesis { my ($urpm, $synthesis) = @_; - my $db = urpm::db_open_or_die($urpm, $urpm->{root}); + my $db = urpm::db_open_or_die_($urpm); my $sig_handler = sub { undef $db; exit 3 }; local $SIG{INT} = $sig_handler; local $SIG{QUIT} = $sig_handler; diff --git a/urpm/media.pm b/urpm/media.pm index 9b3f3bc6..943f528a 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1517,7 +1517,7 @@ sub _read_cachedir_pubkey { $urpm->{log}(N("examining pubkey file of \"%s\"...", $medium->{name})); my $_rpm_lock = urpm::lock::rpm_db($urpm, 'exclusive', wait => $b_wait_lock); - my $db = urpm::db_open_or_die($urpm, $urpm->{root}, 'rw'); + my $db = urpm::db_open_or_die_($urpm, 'rw'); my %key_ids; URPM::import_needed_pubkeys_from_file($db, |