summaryrefslogtreecommitdiffstats
path: root/mdkonline
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2002-07-05 14:36:36 +0000
committerDaouda Lo <daouda@mandriva.com>2002-07-05 14:36:36 +0000
commite55c5b93c2bc86e364acdb7f91d87f7df83d0df7 (patch)
treef4b28be9273e491d493d4e4a854bd477e16674cc /mdkonline
parentfb47a68f62501d34d559e56af31396069798c5b2 (diff)
downloadmgaonline-e55c5b93c2bc86e364acdb7f91d87f7df83d0df7.tar
mgaonline-e55c5b93c2bc86e364acdb7f91d87f7df83d0df7.tar.gz
mgaonline-e55c5b93c2bc86e364acdb7f91d87f7df83d0df7.tar.bz2
mgaonline-e55c5b93c2bc86e364acdb7f91d87f7df83d0df7.tar.xz
mgaonline-e55c5b93c2bc86e364acdb7f91d87f7df83d0df7.zip
- cleanup
Diffstat (limited to 'mdkonline')
-rwxr-xr-xmdkonline20
1 files changed, 11 insertions, 9 deletions
diff --git a/mdkonline b/mdkonline
index 34758ff2..e8303f50 100755
--- a/mdkonline
+++ b/mdkonline
@@ -138,6 +138,8 @@ $Main_Window->show_all;
Gtk->main_iteration while Gtk->events_pending;
Gtk->main;
+Gtk->exit(0);
+$in->exit(0);
sub init_ui {
step_wizard();
@@ -165,7 +167,6 @@ sub gtk_main_quit {
sub isalphanum {
my ($str) = @_;
- #if ($str =~ /^[^\W\d_]+$/) {
if ($str =~ /^[[:alnum:]]+$/) {
return 1;
} else {
@@ -276,7 +277,7 @@ sub test_passwd () {
$passwd = $passwd_user->get_text();
$box_name = $box_user->get_text();
$test = isalphanum($box_name);
- print ("isalnum : $test");
+ #print ("isalnum : $test");
if ($login && $passwd && $test && $login !~ /\s+/ && $passwd !~ /\s+/) {
# NEW METHOD (http)
# first, MD5ify the password
@@ -338,10 +339,10 @@ sub send_config {
wizard => ["/root/$login.$passwd.$box_name.online.log.bz2.uue"]
]);
# Check the outcome of the response
- print "REPONSE: ".$response->content."\n";
+ #print "REPONSE: ".$response->content."\n";
if ($response->is_success) {
$result = ($response->content =~ /^TRUE(.*)/) ? 0 : -1;
- print("key is $1\n");
+ #print("key is $1\n");
$key = $1;
} else {
# pb with the connection ?
@@ -440,8 +441,8 @@ sub step_wizard {
sub report_config {
my ($file) = @_;
-#touch($file);
- my $w = $in->wait_message('',_("Reading configuration\n"));
+ #touch($file);
+ my $w = $in->wait_message('',_("Reading configuration\n"),1);
sub header { "
********************************************************************************
* $_[0]
@@ -467,12 +468,13 @@ close(FILE);
}
sub automated_upgrades {
-# set up a daily cron to check connection and if there is one upgrade the system
- open VERS, "/etc/mandrake-release" or die _("cannot open this file for read: %s", $!);
+ # set up a daily cron to check connection and if there is one upgrade the system
+ open VERS, "/etc/mandrake-release" or die _("cannot open this file for read: %s", $!);
my @info_tree;
while (<VERS>) {
@info_tree = split / /, $_;
}
+ close(VERS);
$mirror_site = $locations{$gtkcombo_mirror->entry->get_text()}[rand (2)];
my $version=$info_tree[3];
my $host = hostname;
@@ -516,7 +518,7 @@ sub info_popup () {
my $style = new Gtk::Style;
$style->font(Gtk::Gdk::Font->fontset_load(_("-adobe-times-bold-r-normal--14-*-100-100-p-*-iso8859-*,*-r-*")));
$label->set_style($style);
- $popup->set_title($title);
+ $popup->set_title($title);
$popup->vbox->pack_start( $label, 1, 1, 0 );
$popup->show_all();
$popup->set_modal(1);