summaryrefslogtreecommitdiffstats
path: root/urpm/main_loop.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r--urpm/main_loop.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index 3eb88b2d..9cf8ab99 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -308,6 +308,9 @@ if ($nok) {
[ keys %{$urpm->{provides}{'should-restart'}} ])) {
if (my $need_restart_formatted = urpm::sys::need_restart_formatted($urpm->{root})) {
$callbacks->{need_restart}($need_restart_formatted) if $callbacks->{need_restart};
+
+ # need_restart() accesses rpm db, so we need to ensure things are clean:
+ urpm::sys::may_clean_rpmdb_shared_regions($urpm, $options{test});
}
}
}