summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-09-02 10:04:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-09-02 10:04:55 +0000
commit378514ee00bb42b293a263ce67e93b5738d9cb6e (patch)
treee7c02a7a6ceb104aaad83f853e3c948352ff3cbc /perl-install/pkgs.pm
parentc3ffd21e8b6dcbfab25ceeb2220bf3df8517526f (diff)
downloaddrakx-378514ee00bb42b293a263ce67e93b5738d9cb6e.tar
drakx-378514ee00bb42b293a263ce67e93b5738d9cb6e.tar.gz
drakx-378514ee00bb42b293a263ce67e93b5738d9cb6e.tar.bz2
drakx-378514ee00bb42b293a263ce67e93b5738d9cb6e.tar.xz
drakx-378514ee00bb42b293a263ce67e93b5738d9cb6e.zip
rename pkgs::rpmDbOpenForInstall() to pkgs::open_rpm_db_rw()
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index cf56128c8..121e421c8 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -899,7 +899,7 @@ sub rpmDbCleanLogs() {
unlink glob("$::prefix/var/lib/rpm/__db.*");
}
-sub rpmDbOpenForInstall() {
+sub open_rpm_db_rw() {
my $db = URPM::DB::open($::prefix, 1);
$db and log::l("opened rpmdb for writing in $::prefix");
$db;
@@ -1126,7 +1126,7 @@ sub install {
$close->($_);
}
} else {
- my $db = rpmDbOpenForInstall() or die "error opening RPM database: ", URPM::rpmErrorString();
+ my $db = open_rpm_db_rw() or die "error opening RPM database: ", URPM::rpmErrorString();
my $trans = $db->create_transaction($::prefix);
if ($retry_pkg) {
log::l("opened rpm database for retry transaction of 1 package only");
@@ -1250,7 +1250,7 @@ sub remove_raw {
log::l("removing: " . join(' ', @$to_remove));
- my $db = rpmDbOpenForInstall() or die "error opening RPM database: ", URPM::rpmErrorString();
+ my $db = open_rpm_db_rw() or die "error opening RPM database: ", URPM::rpmErrorString();
my $trans = $db->create_transaction($::prefix);
#- stuff remove all packages that matches $p, not a problem since $p has name-version-release format.