summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-10-02 12:09:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-10-02 12:09:09 +0000
commite82d3da093c9a454aa3d55d3817c79f103842a08 (patch)
tree4de3b4a9638537a699efea697c9e80ffea109058 /urpm/install.pm
parent01754e05a0ad446288d639c8d94042c7385e1ee9 (diff)
downloadurpmi-e82d3da093c9a454aa3d55d3817c79f103842a08.tar
urpmi-e82d3da093c9a454aa3d55d3817c79f103842a08.tar.gz
urpmi-e82d3da093c9a454aa3d55d3817c79f103842a08.tar.bz2
urpmi-e82d3da093c9a454aa3d55d3817c79f103842a08.tar.xz
urpmi-e82d3da093c9a454aa3d55d3817c79f103842a08.zip
- urpmi
o remove prefix/var/lib/rpm/__db* after installing pkgs rooted
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm5
1 files changed, 5 insertions, 0 deletions
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;
}