summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakbackup
diff options
context:
space:
mode:
authorSebastien Dupont <sdupont@mandriva.com>2001-12-10 17:02:50 +0000
committerSebastien Dupont <sdupont@mandriva.com>2001-12-10 17:02:50 +0000
commite45c1bc02e56d14d98827eb8ebb8696f0e7a6517 (patch)
treeea7545fd9aa5a62120f420de4cfd51b301a33925 /perl-install/standalone/drakbackup
parent504a2c22c529ef3b2b595308c3ff543d51c034fe (diff)
downloaddrakx-e45c1bc02e56d14d98827eb8ebb8696f0e7a6517.tar
drakx-e45c1bc02e56d14d98827eb8ebb8696f0e7a6517.tar.gz
drakx-e45c1bc02e56d14d98827eb8ebb8696f0e7a6517.tar.bz2
drakx-e45c1bc02e56d14d98827eb8ebb8696f0e7a6517.tar.xz
drakx-e45c1bc02e56d14d98827eb8ebb8696f0e7a6517.zip
restore mode, advanced mode done.
wizard mode begin.
Diffstat (limited to 'perl-install/standalone/drakbackup')
-rwxr-xr-xperl-install/standalone/drakbackup330
1 files changed, 93 insertions, 237 deletions
diff --git a/perl-install/standalone/drakbackup b/perl-install/standalone/drakbackup
index 1397d2865..56318b118 100755
--- a/perl-install/standalone/drakbackup
+++ b/perl-install/standalone/drakbackup
@@ -116,7 +116,7 @@ my $custom_help;
my $button_box;
my $button_box_tmp;
my $next_widget;
-my @system_state;
+my $system_state;
# config. FILES -> Default PATH & Global variables.
@@ -538,7 +538,6 @@ sub advanced_what_other {
$list_other->set_selection_mode(-extended);
$list_other->add(gtkshow(new Gtk::ListItem($_))) foreach (@list_other);
-
gtkpack($advanced_box,
$box_what_other = gtkpack_(new Gtk::VBox(0, 15),
1, gtkpack_(new Gtk::HBox(0,4),
@@ -639,15 +638,14 @@ sub advanced_where_net_ftp {
);
$passwd_user_entry->set_visibility(0);
$passwd_user_entry->set_text( $passwd_user );
- $passwd_user_entry->signal_connect( 'changed', sub {
- $passwd_user = $passwd_user_entry->get_text()});
+ $passwd_user_entry->signal_connect( 'changed', sub { $passwd_user = $passwd_user_entry->get_text()});
$host_path_entry->set_text( $host_path );
$host_name_entry->set_text( $host_name );
$login_user_entry->set_text( $login_user );
$host_name_entry->signal_connect( 'changed', sub { $host_name = $host_name_entry->get_text()});
$host_path_entry->signal_connect( 'changed', sub { $host_path = $host_path_entry->get_text()});
$login_user_entry->signal_connect( 'changed', sub { $login_user = $login_user_entry->get_text()});
-
+
foreach ([$check_remember_pass, \$remember_pass], [$check_where_net_ftp, \$where_net_ftp]) {
my $ref = $_->[1];
gtksignal_connect(gtkset_active($_->[0], ${$ref}), toggled => sub { ${$ref} = ${$ref} ? 0 : 1; })
@@ -707,30 +705,29 @@ sub advanced_where_cd {
gtkpack($advanced_box,
$box_where_cd = gtkpack_(new Gtk::VBox(0, 6),
0, my $check_where_cd = new Gtk::CheckButton( _(" Use CD/DVDROM to backup") ),
-
0, new Gtk::HSeparator,
0, gtkpack_(new Gtk::HBox(0,10),
1, _("please choose your CD space"),
0, $combo_where_cd_time,
- 0, _(""),
+ 0, new Gtk::VBox(0, 5),
),
- 0, _(""),
+ 0, new Gtk::VBox(0, 5),
0, gtkpack_(new Gtk::HBox(0,10),
1, _(" Please check if you are using CDRW media"),
0, my $check_cdrw = new Gtk::CheckButton(),
- 0, _(""),
+ 0, new Gtk::VBox(0, 5),
),
- 0, _(""),
+ 0, new Gtk::VBox(0, 5),
0, gtkpack_(new Gtk::HBox(0,10),
1, _(" Please check if you want to include install boot on your CD."),
0, my $check_cd_with_install_boot = new Gtk::CheckButton(),
- 0, _(""),
+ 0, new Gtk::VBox(0, 5),
),
- 0, _(""),
+ 0, new Gtk::VBox(0, 5),
0, gtkpack_(new Gtk::HBox(0,10),
1, _("please enter your CD Writer device name\n ex: 0,1,0"),
0, $cd_devive_entry = new Gtk::Entry(),
- 0, _(""),
+ 0, new Gtk::VBox(0, 5),
),
),
);
@@ -872,7 +869,6 @@ sub advanced_when{
$up_box->show_all();
}
-
sub advanced_options{
my $box_options;
my ($pix_options_map, $pix_options_mask) = gtkcreate_png("backup_options");
@@ -955,54 +951,20 @@ sub advanced_box{
}
sub wizard {
- my $about_box;
- my $book_open;
- my $book_open_mask;
- my $transparent;
- my $book_closed;
- my $book_closed_mask;
- my $box_tmp;
- my $choice_what_sys;
my $box2;
read_conf_file();
-
-
- my ($pix_u_map, $pix_u_mask) = gtkcreate_png("backup_title");
- my ($pix_l_map, $pix_l_mask) = gtkcreate_png("backup_left2");
- my ($pix_r_map, $pix_r_mask) = gtkcreate_png("backup_bot2");
- gtkpack($up_box,
- $box = gtkpack_(new Gtk::VBox(0, 3),
- 0, new Gtk::Pixmap($pix_u_map, $pix_u_mask),
- 1, gtkpack_(new Gtk::HBox(0, 3),
- 0, new Gtk::Pixmap($pix_l_map, $pix_l_mask),
- 1, $advanced_box = gtkpack_(new Gtk::HBox(0, 15),
- 1, $box2 = gtkpack_(new Gtk::HBox(0, 15),
- 1, new Gtk::VBox(0, 5),
- 1, gtkpack_(new Gtk::VBox(0, 15),
- 1, new Gtk::VBox(0, 5),
- 1, gtksignal_connect(my $button_options = new Gtk::Button(), clicked => sub {
- $box2->destroy(); }),
- 1, new Gtk::VBox(0, 5),
- ),
- 1, new Gtk::VBox(0, 5),
- ),
- ),
- ),
- 0, new Gtk::Pixmap($pix_r_map, $pix_r_mask),
- 0, gtkpack_(new Gtk::HButtonBox,
- 0, gtksignal_connect(new Gtk::Button(_(" Cancel ")), clicked =>
- sub { ${$central_widget}->destroy(); interactive_mode(); }),
- 0, gtksignal_connect(new Gtk::Button(_(" Help ")), clicked =>
- sub { ${$central_widget}->destroy(); adv_help(\&$current_widget,$custom_help ); }),
- 1, new Gtk::HBox(0, 1),
- 0, gtksignal_connect(new Gtk::Button(_(" Previous ")), clicked =>
- sub { ${$central_widget}->destroy(); $previous_widget->(); }),
- 0, gtksignal_connect(new Gtk::Button(_(" Next ")), clicked =>
- sub { ${$central_widget}->destroy(); save_conf_file(); $previous_widget->(); }),
-
- ),
- ),
+ gtkpack($advanced_box,
+ $box2 = gtkpack_(new Gtk::HBox(0, 15),
+ 1, new Gtk::VBox(0, 5),
+ 1, gtkpack_(new Gtk::VBox(0, 15),
+ 1, new Gtk::VBox(0, 5),
+ 1, gtksignal_connect(my $button_options = new Gtk::Button(), clicked => sub {
+ $box2->destroy(); }),
+ 1, new Gtk::VBox(0, 5),
+ ),
+ 1, new Gtk::VBox(0, 5),
+ ),
);
$custom_help = "";
$central_widget = \$box2;
@@ -1050,21 +1012,20 @@ sub do_restore_backend {
print "End of restore\n";
}
-
-
sub system_state {
- @system_state = ();
+ $system_state = ();
read_conf_file();
- $backup_sys or push @system_state, _("Do not include System Files");
- if ($option_replace) { push @system_state, _("Replace backups (do not update)"); }
- else { push @system_state, _("Update backups (do not replace)"); }
- if ($comp_mode) { push @system_state, _("Backups use tar and bzip2 "); }
- else { push @system_state, _("Backups use tar and gzip"); }
if ($cfg_file_exist) {
- push @system_state, _("Backup Sources: \n-System Files: @sys_files \n-Users Files: @user_list\n-Other Files to backup: @list_other\nPath to save backups: $save_path\n");}
- else {@system_state = _("No configuration please click Wizard or Advanced.")}
+ $system_state .= _("Backup Sources: \n-System Files: @sys_files \n-Users Files: @user_list\n-Other Files to backup: @list_other\nPath to save backups: $save_path\n");
+ $backup_sys or $system_state .= _("Do not include System Files\n");
+ if ($option_replace) { $system_state .= _("Replace backups (do not update)\n"); }
+ else { $system_state .= _("Update backups (do not replace)\n"); }
+ if ($comp_mode) { $system_state .= _("Backups use tar and bzip2\n "); }
+ else { $system_state .= _("Backups use tar and gzip\n"); }
+ }
+ else {$system_state = _("No configuration please click Wizard or Advanced.\n")}
}
sub do_restore {
@@ -1072,30 +1033,17 @@ sub do_restore {
my $button_restore;
my $text = new Gtk::Text(undef, undef);
system_state();
- gtktext_insert($text, $_) foreach @system_state;
+ gtktext_insert($text, $system_state);
restore_button_box_main();
- if ($cfg_file_exist) {
- $button_restore = gtksignal_connect(new Gtk::Button(_(" Restore ")), clicked => sub {
- do_restore_backend();
- }),
- } else {
- $button_restore = gtksignal_connect(new Gtk::Button(_(" return to main menu ")), clicked => sub {
- ${$central_widget}->destroy(); interactive_mode_box();
- }),
- }
gtkpack($advanced_box,
$do_restore = gtkpack_(new Gtk::VBox(0,10),
- 1, new Gtk::VBox(0,10),
+ 0, _(" Restore Configuration "),
1, createScrolledWindow($text),
- 1, gtkpack(new Gtk::HBox(0,10),
- new Gtk::VBox(0,10),
- $button_restore,
- new Gtk::VBox(0,10),
- ),
- 1, new Gtk::VBox(0,10),
),
);
+ restore_button_box_end();
+ $previous_widget =\&restore_box;
$custom_help = "restore";
$current_widget = \&do_restore;
$central_widget = \$do_restore;
@@ -1105,36 +1053,27 @@ sub do_restore {
sub restore_step_other {
my $retore_step_other;
- gtkpack($retore_box2,
+ gtkpack($advanced_box,
$retore_step_other = gtkpack_(new Gtk::VBox(0,10),
- 1, new Gtk::VBox(0,10),
- 1, createScrolledWindow( gtkpack(new Gtk::VBox(0,0),
- gtkadd(new Gtk::Frame(_("Backup of other files content.")),
- gtkpack(new Gtk::VBox(0,10),
- cat_("$save_path/list_other"),
- ),
- ),
- ),
- ),
- 0, my $check_restore_other_sure = new Gtk::CheckButton(_(" Sure to restore the other files .")),
- 1, new Gtk::VBox(0,10),
- 0, gtkpack_(new Gtk::HBox(0,10),
- 0, gtksignal_connect(new Gtk::Button(_(" Previous ")), clicked => sub {
- $retore_step_other->destroy();
- restore_step2();
- }),
- 1, new Gtk::VBox(0,10),
- 0, gtksignal_connect(new Gtk::Button(_(" Next ")), clicked => sub {
- ${$central_widget}->destroy();
- do_restore();
- }),
- ),
- ),
+ 1, new Gtk::VBox(0,10),
+ 1, createScrolledWindow( gtkpack(new Gtk::VBox(0,0),
+ gtkadd(new Gtk::Frame(_("Backup of other files content.")),
+ gtkpack(new Gtk::VBox(0,10),
+ cat_("$save_path/list_other"),
+ ),
+ ),
+ ),
+ ),
+ 0, my $check_restore_other_sure = new Gtk::CheckButton(_(" Sure to restore the other files .")),
+ 1, new Gtk::VBox(0,10),
+ ),
);
foreach ([$check_restore_other_sure, \$restore_other]) {
my $ref = $_->[1];
gtksignal_connect(gtkset_active($_->[0], ${$ref}), toggled => sub { ${$ref} = ${$ref} ? 0 : 1; })
}
+
+ $next_widget = \&do_restore;
$custom_help = "restore";
$current_widget = \&restore_step_other;
$central_widget = \$retore_step_other;
@@ -1144,47 +1083,36 @@ sub restore_step_other {
my %check_user_to_restore;
sub restore_step_user {
my $retore_step_user;
- gtkpack($retore_box2,
+ gtkpack($advanced_box,
$retore_step_user = gtkpack_(new Gtk::VBox(0,10),
- 0, new Gtk::VBox(0,10),
- 0, _("User list to restore "),
- 1, createScrolledWindow( gtkpack(new Gtk::VBox(0,0),
- map { my $name = $_;
-
- my $b = new Gtk::CheckButton($name);
- if ( grep /^$name$/, @user_list_to_restore) {
- gtkset_active($b, 1);
- } else {
- gtkset_active($b, 0);
- }
- $b->signal_connect(toggled => sub {
- if ($check_user_to_restore{$name}[1] ) {
- $check_user_to_restore{$name}[1] = 1;
- if (!member($name, @user_list_to_restore) ) {
- push @user_list_to_restore, $name;}
- } else {
- $check_user_to_restore{$name}[1] = 0;
- my @user_list_tmp = grep(!/^$name$/,@user_list_to_restore );
- @user_list_to_restore = @user_list_tmp;
- }
- });
- $b } (@user_backuped)
- ),
- ),
- 0, gtkpack_(new Gtk::HBox(0,10),
- 0, gtksignal_connect(new Gtk::Button(_(" Previous ")), clicked => sub {
- $retore_step_user->destroy();
- restore_step2();
- }),
- 1, new Gtk::VBox(0,10),
- 0, gtksignal_connect(new Gtk::Button(_(" Next ")), clicked => sub {
- ${$central_widget}->destroy();
- if ($restore_other) { restore_step_other();}
- else{ do_restore();}
- }),
- ),
+ 0, new Gtk::VBox(0,10),
+ 0, _("User list to restore "),
+ 1, createScrolledWindow( gtkpack(new Gtk::VBox(0,0),
+ map { my $name = $_;
+ my $b = new Gtk::CheckButton($name);
+ if ( grep /^$name$/, @user_list_to_restore) {
+ gtkset_active($b, 1);
+ } else {
+ gtkset_active($b, 0);
+ }
+ $b->signal_connect(toggled => sub {
+ if ($check_user_to_restore{$name}[1] ) {
+ $check_user_to_restore{$name}[1] = 1;
+ if (!member($name, @user_list_to_restore) ) {
+ push @user_list_to_restore, $name;}
+ } else {
+ $check_user_to_restore{$name}[1] = 0;
+ my @user_list_tmp = grep(!/^$name$/,@user_list_to_restore );
+ @user_list_to_restore = @user_list_tmp;
+ }
+ });
+ $b } (@user_backuped)
+ ),
+ ),
),
);
+ if ($restore_other) { $next_widget = \&restore_step_other;}
+ else{ $next_widget = \&do_restore;}
$custom_help = "restore";
$current_widget = \&restore_step_user;
$central_widget = \$retore_step_user;
@@ -1194,9 +1122,9 @@ sub restore_step_user {
sub restore_step_sys {
my $retore_step_sys;
my $combo_retore_step_sys = new Gtk::Combo();
- $combo_retore_step_sys->set_popdown_strings ("12 jan 2002","12 jan 2002", "12 jan 2002", "12 jan 2002");
+ $combo_retore_step_sys->set_popdown_strings ("9 jan 2002","10 jan 2002", "11 jan 2002", "12 jan 2002");
- gtkpack($retore_box2,
+ gtkpack($advanced_box,
$retore_step_sys = gtkpack_(new Gtk::VBox(0,10),
1, new Gtk::VBox(0,10),
0, my $check_backup_before = new Gtk::CheckButton(_(" Backup the system files before.")),
@@ -1206,21 +1134,12 @@ sub restore_step_sys {
0, _(""),
),
1, new Gtk::VBox(0,10),
- 0, gtkpack_(new Gtk::HBox(0,10),
- 0, gtksignal_connect(new Gtk::Button(_(" Previous ")), clicked => sub {
- $retore_step_sys->destroy();
- restore_step2();
- }),
- 1, new Gtk::VBox(0,10),
- 0, gtksignal_connect(new Gtk::Button(_(" Next ")), clicked => sub {
- ${$central_widget}->destroy();
- if ($restore_user) { restore_step_user();}
- elsif ($restore_other){ restore_step_other();}
- else{ do_restore();}
- }),
- ),
),
);
+
+ if ($restore_user) { $next_widget = \&restore_step_user;}
+ elsif ($restore_other){ $next_widget = \&restore_step_other;}
+ else{ $next_widget = \&do_restore;}
$custom_help = "restore";
$current_widget = \&restore_step_sys;
$central_widget = \$retore_step_sys;
@@ -1238,28 +1157,17 @@ sub restore_step2 {
0, my $check_restore_user = new Gtk::CheckButton(_("Restore Users")),
0, my $check_restore_other = new Gtk::CheckButton(_("Restore Other")),
1, new Gtk::VBox(0,10),
-# 0, gtkpack_(new Gtk::HBox(0,10),
-# 1, new Gtk::VBox(0,10),
-# 0, gtksignal_connect(new Gtk::Button(_(" Next ")), clicked => sub {
-# ${$central_widget}->destroy();
-# if ($restore_sys && $backup_sys_cvs) { restore_step_sys(); }
-# elsif ($restore_user) { restore_step_user();}
-# elsif ($restore_other){ restore_step_other();}
-# else{ do_restore();}
-# }),
-# ),
),
);
foreach ([$check_restore_sys, \$restore_sys], [$check_restore_user, \$restore_user], [$check_restore_other, \$restore_other]) {
my $ref = $_->[1];
gtksignal_connect(gtkset_active($_->[0], ${$ref}), toggled => sub { ${$ref} = ${$ref} ? 0 : 1; })
}
-
-# if ($restore_sys && $backup_sys_cvs) { $next_widget = \&restore_step_sys; }
-# elsif ($restore_user) { $next_widget = \&restore_step_user;}
-# elsif ($restore_other){ $next_widget = \&restore_step_other;}
-# else{ $next_widget = \&do_restore;}
- $next_widget = \&do_restore;
+
+ if ($restore_sys && $backup_sys_cvs) { $next_widget = \&restore_step_sys; }
+ elsif ($restore_user) { $next_widget = \&restore_step_user;}
+ elsif ($restore_other){ $next_widget = \&restore_step_other;}
+ else{ $next_widget = \&do_restore;}
$custom_help = "restore";
$previous_widget =\&restore_box;
$current_widget = \&restore_step2;
@@ -1316,11 +1224,6 @@ sub restore_box {
)
);
}
-
-# if ($restore_sys && $backup_sys_cvs) { $next_widget = \&restore_step_sys; }
-# elsif ($restore_user) { $next_widget = \&restore_step_user();}
-# elsif ($restore_other){ $next_widget = \&restore_step_other();}
-# else{ $next_widget = \&do_restore();}
$custom_help = "restore";
$current_widget = \&restore_box;
$central_widget = \$retore_box;
@@ -1361,7 +1264,7 @@ sub restore_button_box_main {
);
}
-sub restore_button_box {
+sub restore_button_box_end {
$button_box_tmp->destroy();
gtkpack($button_box,
@@ -1373,14 +1276,10 @@ sub restore_button_box {
1, new Gtk::HBox(0, 0),
0, gtksignal_connect(new Gtk::Button(_(" Previous ")), clicked => sub {
${$central_widget}->destroy(); $previous_widget->(); }),
- 1, gtksignal_connect(new Gtk::Button(_(" Next ")), clicked => sub {
- ${$central_widget}->destroy();
- $next_widget->();
-# if ($restore_sys && $backup_sys_cvs) { restore_step_sys(); }
-# elsif ($restore_user) { restore_step_user();}
-# elsif ($restore_other){ restore_step_other();}
-# else{ do_restore();}
- }),
+ 1, gtksignal_connect(new Gtk::Button(_(" Restore ")), clicked => sub {
+ ${$central_widget}->destroy();
+ do_restore_backend();
+ }),
),
);
}
@@ -1412,7 +1311,7 @@ sub main_button_box {
gtksignal_connect(new Gtk::Button(_("close")), clicked => sub {
Gtk->main_quit() }),
gtksignal_connect(new Gtk::Button(_(" Help ")), clicked => sub {
- ${$central_widget}->destroy(); help(\&interactive_mode_box) }),
+ ${$central_widget}->destroy(); adv_help(\&interactive_mode_box) }),
),
);
}
@@ -1531,49 +1430,6 @@ sub about {
$up_box->show_all();
}
-sub help {
- my ($function) = @_,
- my $text = new Gtk::Text(undef, undef);
- my $about_box;
- gtkpack($up_box,
- $about_box = gtkpack_(new Gtk::VBox(0,10),
- 1, gtkpack_(new Gtk::HBox(0,0),
- 1, gtktext_insert(gtkset_editable($text, 0), _("
-description:
-
- Drakbacup is use to backup system files and user files
- Drakbacup allow to restore the system (etc, var files)
- from starup or on drakconf utility.
-
-backup name format: all the time from the / dir.
-
- system backup:
- backup_sys.tar.gz
- user backup
- backup_user_james.tar.gz
- backup_user_seb.tar.gz
- other directories
- backup_other.tar.gz
-
-build iso fs with rescue.
-
-configuration file:
-
- /etc/drakconf/drakbackup/drakbakup.conf
-
-")),
- 0, new Gtk::VScrollbar($text->vadj),
- ),
- 0, gtkadd(gtkset_layout(new Gtk::HButtonBox, -spread),
- gtksignal_connect(new Gtk::Button(_("OK")), clicked =>
- sub { ${$central_widget}->destroy(); $function->(); }),
- ),
- )
- );
- $central_widget = \$about_box;
- $up_box->show_all();
-}
-
sub adv_help {
my ($function, $custom_help) = @_,
my $text = new Gtk::Text(undef, undef);
d='n1065' href='#n1065'>1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191
package install_steps_interactive; # $Id$


use diagnostics;
use strict;
use vars qw(@ISA $new_bootstrap);

@ISA = qw(install_steps);

#-######################################################################################
#- misc imports
#-######################################################################################
use common;
use partition_table qw(:types);
use partition_table_raw;
use install_steps;
use install_interactive;
use install_any;
use detect_devices;
use run_program;
use devices;
use fsedit;
use loopback;
use mouse;
use modules;
use lang;
use keyboard;
use any;
use fs;
use log;

#-######################################################################################
#- In/Out Steps Functions
#-######################################################################################
sub errorInStep($$) {
    my ($o, $err) = @_;
    $o->ask_warn(_("Error"), [ _("An error occurred"), common::formatError($err) ]);
}

sub kill_action {
    my ($o) = @_;
    $o->kill;
}

sub charsetChanged {}

#-######################################################################################
#- Steps Functions
#-######################################################################################
#------------------------------------------------------------------------------
sub selectLanguage {
    my ($o) = @_;

    $o->{lang} = any::selectLanguage($o, $o->{lang}, $o->{langs} ||= {});
    install_steps::selectLanguage($o);

    $o->charsetChanged;

    $o->ask_warn('', formatAlaTeX(
"If you see this message it is because you choose a language for
which DrakX does not include a translation yet; however the fact
that it is listed means there is some support for it anyway.

That is, once GNU/Linux will be installed, you will be able to at
least read and write in that language; and possibly more (various
fonts, spell checkers, various programs translated etc. that
varies from language to language).")) if $o->{lang} !~ /^en/ && !lang::load_mo();
    
    unless ($o->{useless_thing_accepted}) {
	$o->set_help('license');
	$o->{useless_thing_accepted} = $o->ask_from_list_(_("License agreement"), formatAlaTeX(
_("Introduction

The operating system and the different components available in the Mandrake Linux distribution 
shall be called the \"Software Products\" hereafter. The Software Products include, but are not 
restricted to, the set of programs, methods, rules and documentation related to the operating 
system and the different components of the Mandrake Linux distribution.


1. License Agreement

Please read carefully this document. This document is a license agreement between you and  
MandrakeSoft S.A. which applies to the Software Products.
By installing, duplicating or using the Software Products in any manner, you explicitly 
accept and fully agree to conform to the terms and conditions of this License. 
If you disagree with any portion of the License, you are not allowed to install, duplicate or use 
the Software Products. 
Any attempt to install, duplicate or use the Software Products in a manner which does not comply 
with the terms and conditions of this License is void and will terminate your rights under this 
License. Upon termination of the License,  you must immediately destroy all copies of the 
Software Products.


2. Limited Warranty

The Software Products and attached documentation are provided \"as is\", with no warranty, to the 
extent permitted by law.
MandrakeSoft S.A. will, in no circumstances and to the extent permitted by law, be liable for any special,
incidental, direct or indirect damages whatsoever (including without limitation damages for loss of 
business, interruption of business, financial loss, legal fees and penalties resulting from a court 
judgment, or any other consequential loss) arising out of  the use or inability to use the Software 
Products, even if MandrakeSoft S.A. has been advised of the possibility or occurance of such 
damages.

LIMITED LIABILITY LINKED TO POSSESSING OR USING PROHIBITED SOFTWARE IN SOME COUNTRIES

To the extent permitted by law, MandrakeSoft S.A. or its distributors will, in no circumstances, be 
liable for any special, incidental, direct or indirect damages whatsoever (including without 
limitation damages for loss of business, interruption of business, financial loss, legal fees 
and penalties resulting from a court judgment, or any other consequential loss) arising out 
of the possession and use of software components or arising out of  downloading software components 
from one of Mandrake Linux sites  which are prohibited or restricted in some countries by local laws.
This limited liability applies to, but is not restricted to, the strong cryptography components 
included in the Software Products.


3. The GPL License and Related Licenses

The Software Products consist of components created by different persons or entities.  Most 
of these components are governed under the terms and conditions of the GNU General Public 
Licence, hereafter called \"GPL\", or of similar licenses. Most of these licenses allow you to use, 
duplicate, adapt or redistribute the components which they cover. Please read carefully the terms 
and conditions of the license agreement for each component before using any component. Any question 
on a component license should be addressed to the component author and not to MandrakeSoft.
The programs developed by MandrakeSoft S.A. are governed by the GPL License. Documentation written 
by MandrakeSoft S.A. is governed by a specific license. Please refer to the documentation for 
further details.


4. Intellectual Property Rights

All rights to the components of the Software Products belong to their respective authors and are 
protected by intellectual property and copyright laws applicable to software programs.
MandrakeSoft S.A. reserves its rights to modify or adapt the Software Products, as a whole or in 
parts, by all means and for all purposes.
\"Mandrake\", \"Mandrake Linux\" and associated logos are trademarks of MandrakeSoft S.A.  


5. Governing Laws 

If any portion of this agreement is held void, illegal or inapplicable by a court judgment, this 
portion is excluded from this contract. You remain bound by the other applicable sections of the 
agreement.
The terms and conditions of this License are governed by the Laws of France.
All disputes on the terms of this license will preferably be settled out of court. As a last 
resort, the dispute will be referred to the appropriate Courts of Law of Paris - France.
For any question on this document, please contact MandrakeSoft S.A.  
")), [ __("Accept"), __("Refuse") ], "Refuse") eq "Accept" or $o->exit;
    }