diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-03-17 17:20:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-03-17 17:20:02 +0000 |
commit | f0bc8483bcb43e955862a375161e99658dce49b1 (patch) | |
tree | 276202f7f8763d68db149d541d1c10a4af6b79c8 /urpm/main_loop.pm | |
parent | 969efed0bf6ffea584f378ae89ec28a89e02254f (diff) | |
download | urpmi-f0bc8483bcb43e955862a375161e99658dce49b1.tar urpmi-f0bc8483bcb43e955862a375161e99658dce49b1.tar.gz urpmi-f0bc8483bcb43e955862a375161e99658dce49b1.tar.bz2 urpmi-f0bc8483bcb43e955862a375161e99658dce49b1.tar.xz urpmi-f0bc8483bcb43e955862a375161e99658dce49b1.zip |
- urpmi:
o tell the user to "restart system" when it is needed
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r-- | urpm/main_loop.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index 14edf494..ff81ee7a 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -28,7 +28,7 @@ use urpm::media; use urpm::select; use urpm::get_pkgs; use urpm::signature; -use urpm::util qw(untaint difference2 member partition); +use urpm::util qw(untaint difference2 intersection member partition); # locking is left to callers sub run { @@ -305,6 +305,11 @@ if ($nok) { } elsif ($test && $exit_code == 0) { #- Warning : the following message is parsed in urpm::parallel_* print N("Installation is possible"), "\n"; + } elsif (intersection([ keys %{$state->{selected}} ], + [ keys %{$urpm->{provides}{'should-restart'}} ])) { + if (my $need_restart_formatted = urpm::sys::need_restart_formatted()) { + $callbacks->{need_restart}($need_restart_formatted) if $callbacks->{need_restart}; + } } } } |