summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-28 18:14:59 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-28 18:14:59 +0000
commit139a5e1e8936d0bca1f648e3382229b3eee09b55 (patch)
treeff6775511d0f82676280a94d2915e47b15b5c9c7
parent0ba969a411872e644f58821c7cefc45e32219a4c (diff)
downloadmgaonline-139a5e1e8936d0bca1f648e3382229b3eee09b55.tar
mgaonline-139a5e1e8936d0bca1f648e3382229b3eee09b55.tar.gz
mgaonline-139a5e1e8936d0bca1f648e3382229b3eee09b55.tar.bz2
mgaonline-139a5e1e8936d0bca1f648e3382229b3eee09b55.tar.xz
mgaonline-139a5e1e8936d0bca1f648e3382229b3eee09b55.zip
remove unused $gr variable whose sole purpose was to crash the wizard
when steping back on account creation step
-rwxr-xr-xmdkonline5
1 files changed, 2 insertions, 3 deletions
diff --git a/mdkonline b/mdkonline
index e4985ba3..b6b9cfce 100755
--- a/mdkonline
+++ b/mdkonline
@@ -43,7 +43,7 @@ my $confdir = '/root/.MdkOnline';
my $conffile = "$confdir/mdkupdate";
my $logfile = '/var/tmp/mdkonline.log';
-my ($greeting, $firstname, $lastname, $login, $account, $password, $npassword, $boxname, $cfmpassword, $email, $country, $ia, $gr, $alias);
+my ($greeting, $firstname, $lastname, $login, $account, $password, $npassword, $boxname, $cfmpassword, $email, $country, $ia, $alias);
my @info;
@@ -162,7 +162,6 @@ my $wiz =
];
},
complete => sub {
- $gr = find_index { /$gr/ } @greets;
$alias = $firstname . $lastname;
@info = ($account, $npassword, $firstname, $lastname, $lang, $greeting, $alias, 'home');
if ($npassword ne $cfmpassword) {
@@ -225,5 +224,5 @@ if (!$ia && $login && $password && $boxname) {
output_p($logfile, N("Cannot connect to Mandriva Online website: wrong login/password or router/firewall bad settings"));
}
} else {
- !$::testing && mdkonline::get_release <= 2006.0 ? wizards->new->safe_process($wiz, $in) : wizards->new($wiz)->safe_process($in);
+ !$::testing && mdkonline::get_release <= 2005.0 ? wizards->new->safe_process($wiz, $in) : wizards->new($wiz)->safe_process($in);
}