diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-27 09:40:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-27 09:40:25 +0000 |
commit | 17fb15fa0eae808c23e33022a5be7a47479cb169 (patch) | |
tree | 78e40027ddb9de9cc24e8ccf2598b5d2ec45c6e0 /Rpmdrake/pkg.pm | |
parent | 51078d2840e51b784ee98fdd1e2d4bb2205d86d3 (diff) | |
download | rpmdrake-17fb15fa0eae808c23e33022a5be7a47479cb169.tar rpmdrake-17fb15fa0eae808c23e33022a5be7a47479cb169.tar.gz rpmdrake-17fb15fa0eae808c23e33022a5be7a47479cb169.tar.bz2 rpmdrake-17fb15fa0eae808c23e33022a5be7a47479cb169.tar.xz rpmdrake-17fb15fa0eae808c23e33022a5be7a47479cb169.zip |
(warn_about_media) add a "Do not ask me next time" checkbox (#17697)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rwxr-xr-x | Rpmdrake/pkg.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 8454da9f..3e112a8b 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -195,7 +195,11 @@ sub warn_about_media { N("I need to contact the mirror to get latest update packages. Please check that your network is currently running. -Is it ok to continue?"), yesno => 1) or myexit(-1); +Is it ok to continue?"), yesno => 1, + widget => gtknew('CheckButton', text => N("Do not ask me next time"), + active_ref => \$::rpmdrake_options{'no-confirmation'} + )) or myexit(-1); + writeconf(); urpm::media::select_media($urpm, map { $_->{name} } @update_medias); update_sources($urpm, noclean => 1, banner => $::isEmbedded); } |