From 1a473cb0b77747633cafce9488c6e61930a5aa36 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 9 Sep 2008 07:52:36 +0000 Subject: create may_clean_rpmdb_shared_regions() --- urpm/install.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'urpm/install.pm') diff --git a/urpm/install.pm b/urpm/install.pm index 82f2a481..8007e32b 100644 --- a/urpm/install.pm +++ b/urpm/install.pm @@ -286,10 +286,7 @@ sub install { } unlink @produced_deltas; - if ($urpm->{root} && !$options{test} || $urpm->{tune_rpm}{private}) { - $urpm->{root} && $urpm->{debug} and $urpm->{debug}("workaround bug in rpmlib by removing /var/lib/rpm/__db*"); - urpm::sys::clean_rpmdb_shared_regions($urpm->{root}); - } + urpm::sys::may_clean_rpmdb_shared_regions($urpm, $options{test}); @errors; } -- cgit v1.2.1