aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Rpmdragora
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-05 16:59:16 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-05 16:59:16 +0100
commit99d536312edb82a8af4df60348a43a31859f1db8 (patch)
tree9dac23b3cde984d7f0b85f855d84f19044364a59 /lib/AdminPanel/Rpmdragora
parenta7b02f6cee1153dd46a70323157b301c45065589 (diff)
downloadcolin-keep-99d536312edb82a8af4df60348a43a31859f1db8.tar
colin-keep-99d536312edb82a8af4df60348a43a31859f1db8.tar.gz
colin-keep-99d536312edb82a8af4df60348a43a31859f1db8.tar.bz2
colin-keep-99d536312edb82a8af4df60348a43a31859f1db8.tar.xz
colin-keep-99d536312edb82a8af4df60348a43a31859f1db8.zip
added dont_ask_again to contanct mirror request
Diffstat (limited to 'lib/AdminPanel/Rpmdragora')
-rw-r--r--lib/AdminPanel/Rpmdragora/pkg.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/AdminPanel/Rpmdragora/pkg.pm b/lib/AdminPanel/Rpmdragora/pkg.pm
index 8476d25..f3a6b44 100644
--- a/lib/AdminPanel/Rpmdragora/pkg.pm
+++ b/lib/AdminPanel/Rpmdragora/pkg.pm
@@ -259,15 +259,20 @@ sub warn_about_media {
if (@update_medias > 0) {
if (!$options{skip_updating_mu} && !$is_update_media_already_asked) {
$is_update_media_already_asked = 1;
- $::rpmdragora_options{'no-confirmation'} or interactive_msg($loc->N("Confirmation"),
-$loc->N("I need to contact the mirror to get latest update packages.
+ if (!$::rpmdragora_options{'no-confirmation'}) {
+ my $choice = interactive_msg($loc->N("Confirmation"),
+ $loc->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
+Is it ok to continue?"
+ ), yesno => 1, dont_ask_again => 1,
# TODO widget => gtknew('CheckButton', text => $loc->N("Do not ask me next time"),
# active_ref => \$::rpmdragora_options{'no-confirmation'}
# )
- ) or return(-1);
+ );
+ $::rpmdragora_options{'no-confirmation'} = $choice->{dont_ask_again};
+ return(-1) if !$choice->{value};
+ }
writeconf();
urpm::media::select_media($urpm, map { $_->{name} } @update_medias);
update_sources($urpm, noclean => 1, medialist => [ map { $_->{name} } @update_medias ]);