summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:40 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:40 +0000
commit3a0d27931b2db79050d25cf4cd8b2af287646f92 (patch)
treef7fdf81dc1b4be62cb73eccb5f5256a5c1e8bdb0
parent4508faca4c794f11171dbe143169d21efacde0a0 (diff)
downloadmgaonline-3a0d27931b2db79050d25cf4cd8b2af287646f92.tar
mgaonline-3a0d27931b2db79050d25cf4cd8b2af287646f92.tar.gz
mgaonline-3a0d27931b2db79050d25cf4cd8b2af287646f92.tar.bz2
mgaonline-3a0d27931b2db79050d25cf4cd8b2af287646f92.tar.xz
mgaonline-3a0d27931b2db79050d25cf4cd8b2af287646f92.zip
(add_extmaint_medium) save extended maintenance state
TODO: handle having extmaint,then upgrade to a new distro (we should then drop the flag)
-rwxr-xr-xmdkapplet-extended-maintenance-helper3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdkapplet-extended-maintenance-helper b/mdkapplet-extended-maintenance-helper
index ca006be6..736ab935 100755
--- a/mdkapplet-extended-maintenance-helper
+++ b/mdkapplet-extended-maintenance-helper
@@ -59,6 +59,7 @@ if ($@) {
*interactive::gtk::add_padding = sub { $_[0] };
}
+read_config();
get_extmaint_authentication();
ugtk2::exit(0);
@@ -183,6 +184,8 @@ sub add_extmaint_medium {
or adding_media_failed();
}
if (!$error) {
+ $config{EXTENDED_SUPPORT} = bool2yesno(1);
+ setVarsInSh($config_file, \%config);
#interactive->vnew->ask_okcancel(N("Error"), N("An error occurred while adding medium"));
my $w = ugtk2->new(N("Successfully added media %s.", 'Extended Maintenance'), grab => 1);
$w->_ask_okcancel(N("Successfully added media %s.", 'Extended Maintenance'), N("Ok"), undef);