summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-04 10:56:39 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-04 10:56:39 +0000
commita66e06b7fb07e17e1bc17e3bb16a399e6b9e3096 (patch)
tree19dfb118b1649d54f9d1658f2c26357992a78683
parentdf19739902144bcbcd2e8037f9f1ca71a653a485 (diff)
downloaddrakx-a66e06b7fb07e17e1bc17e3bb16a399e6b9e3096.tar
drakx-a66e06b7fb07e17e1bc17e3bb16a399e6b9e3096.tar.gz
drakx-a66e06b7fb07e17e1bc17e3bb16a399e6b9e3096.tar.bz2
drakx-a66e06b7fb07e17e1bc17e3bb16a399e6b9e3096.tar.xz
drakx-a66e06b7fb07e17e1bc17e3bb16a399e6b9e3096.zip
(_install_raw::close_helper) make sure to free package header so that
rpmdb can be closed (else we exhaust the max number of opened fd)
-rw-r--r--perl-install/install/NEWS2
-rw-r--r--perl-install/install/pkgs.pm2
2 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 482ed1e56..711bdc69c 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,5 @@
+- make sure to free package header so that rpmdb can be closed (else
+ we exhaust the max number of opened fd)
- really set urpmi in automatic mode for non-interactive installs
(and not vice-versa)
- use package summary translations once 'mdv-rpm-summary' is installed
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index 897cd8fa1..d7d88ed90 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -746,6 +746,8 @@ sub _install_raw {
$check_installed or log::l($pkg->name . " not installed, " . URPM::rpmErrorString());
$check_installed and $close->($pkg);
+ # prevent rpmdb to remain open:
+ $pkg->free_header;
}, inst => $callback,
trans => $callback,
# FIXME: implement already_installed_or_not_installable