summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 1251c8e0..683047ce 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -254,8 +254,8 @@ 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*");
+ 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});
}