From e82d3da093c9a454aa3d55d3817c79f103842a08 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 2 Oct 2007 12:09:09 +0000 Subject: - urpmi o remove prefix/var/lib/rpm/__db* after installing pkgs rooted --- NEWS | 3 +++ urpm/install.pm | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index d2ace714..7b98ed9f 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +- urpmi + o remove prefix/var/lib/rpm/__db* after installing pkgs rooted + Version 4.10.12 - 27 September 2007, by Pascal "Pixel" Rigaux - urpm::media::update_media: diff --git a/urpm/install.pm b/urpm/install.pm index 29bf272f..1251c8e0 100644 --- a/urpm/install.pm +++ b/urpm/install.pm @@ -254,6 +254,11 @@ sub install { } unlink @produced_deltas; + if ($urpm->{root} && !$options{test}) { + $urpm->{debug} and $urpm->{debug}("workaround bug in rpmlib by removing /var/lib/rpm/__db*"); + urpm::sys::clean_rpmdb_shared_regions($urpm->{root}); + } + @l; } -- cgit v1.2.1