diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-01-24 14:24:41 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-01-24 14:24:41 +0000 |
commit | 277ec70b75355d1e2b0eba613467783f53c0827e (patch) | |
tree | 26e1df918499c0d48081e55ac92c230feda33c10 /perl-install/install_any.pm | |
parent | 7da6b7146113385973483c99cce20bfb84c1558b (diff) | |
download | drakx-277ec70b75355d1e2b0eba613467783f53c0827e.tar drakx-277ec70b75355d1e2b0eba613467783f53c0827e.tar.gz drakx-277ec70b75355d1e2b0eba613467783f53c0827e.tar.bz2 drakx-277ec70b75355d1e2b0eba613467783f53c0827e.tar.xz drakx-277ec70b75355d1e2b0eba613467783f53c0827e.zip |
fix "Previous" button in warnAboutNaughtyServers, so there is 3 choices
(Previous, unselect servers, accept :)
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index f52bbc87d..b2d8ed0b7 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -412,7 +412,7 @@ sub unselectMostPackages { sub warnAboutNaughtyServers { my ($o) = @_; my @naughtyServers = pkgs::naughtyServers($o->{packages}) or return 1; - if (!$o->ask_yesorno('', + my $r = $o->ask_from_list_('', formatAlaTeX(N("You have selected the following server(s): %s @@ -422,9 +422,12 @@ to upgrade as soon as possible. Do you really want to install these servers? -", join(", ", @naughtyServers))), 1)) { +", join(", ", @naughtyServers))), [ N_("Yes"), N_("No") ], 'Yes') or return; + if ($r ne 'Yes') { + log::l("unselecting naughty servers"); pkgs::unselectPackage($o->{packages}, pkgs::packageByName($o->{packages}, $_)) foreach @naughtyServers; } + 1; } sub warnAboutRemovedPackages { |