diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-15 16:02:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-15 16:02:12 +0000 |
commit | 09e97d9b8ecb792403299d597ad5ad579fd3dd5c (patch) | |
tree | a903c59471527cc09c4ac43b8fe2e02021977bf4 /Rpmdrake | |
parent | 298bb6fc664574f6a750ab5ee36e63d55cadbec6 (diff) | |
download | rpmdrake-09e97d9b8ecb792403299d597ad5ad579fd3dd5c.tar rpmdrake-09e97d9b8ecb792403299d597ad5ad579fd3dd5c.tar.gz rpmdrake-09e97d9b8ecb792403299d597ad5ad579fd3dd5c.tar.bz2 rpmdrake-09e97d9b8ecb792403299d597ad5ad579fd3dd5c.tar.xz rpmdrake-09e97d9b8ecb792403299d597ad5ad579fd3dd5c.zip |
(get_pkgs) do not ask again to update media after doing some actions
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-x | Rpmdrake/pkg.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 35798567..1dc8a7d4 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -180,6 +180,7 @@ sub get_pkgs { my %update_descr; my @update_medias; my $w = $::main_window; + my $is_update_media_already_asked if 0; my $error_happened; my $fatal_handler = sub { @@ -211,8 +212,9 @@ sub get_pkgs { if (member($::default_list_mode, qw(all_updates security bugfix normal))) { unless ($::options{'no-media-update'}) { if (@update_medias > 0) { - if (!$opts->{skip_updating_mu}) { - $::options{'no-confirmation'} or interactive_msg_with_banner(N("Confirmation"), + if (!$opts->{skip_updating_mu} && !$is_update_media_already_asked) { + $is_update_media_already_asked = 1; + $ask_confirmation and interactive_msg_with_banner(N("Confirmation"), N("I need to contact the mirror to get latest update packages. Please check that your network is currently running. |