From 740c2e83717643482caf3ba4133c5cf83b07563f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 9 Sep 2008 08:02:42 +0000 Subject: clean __db* after computing need_restart (in chroot) --- urpm/main_loop.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'urpm') 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}); } } } -- cgit v1.2.1