diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-09 08:02:42 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-09 08:02:42 +0000 |
commit | 740c2e83717643482caf3ba4133c5cf83b07563f (patch) | |
tree | 5679df75feacc96508e537417f154432093b1091 | |
parent | ebc5b185c360f22186df959c44d60bcc66584735 (diff) | |
download | urpmi-740c2e83717643482caf3ba4133c5cf83b07563f.tar urpmi-740c2e83717643482caf3ba4133c5cf83b07563f.tar.gz urpmi-740c2e83717643482caf3ba4133c5cf83b07563f.tar.bz2 urpmi-740c2e83717643482caf3ba4133c5cf83b07563f.tar.xz urpmi-740c2e83717643482caf3ba4133c5cf83b07563f.zip |
clean __db* after computing need_restart (in chroot)
-rw-r--r-- | urpm/main_loop.pm | 3 |
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}); } } } |