summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-12-23 14:30:32 +0000
committerDaouda Lo <daouda@mandriva.com>2004-12-23 14:30:32 +0000
commit7d114b668cc268368d6fc77ebee20b6deb20c01c (patch)
tree076d8d2f4d987d4d65ee65fa856d93f9b6442b74
parent215db06a3f6261a1b8f666441962ad5a27250ea3 (diff)
downloadmgaonline-7d114b668cc268368d6fc77ebee20b6deb20c01c.tar
mgaonline-7d114b668cc268368d6fc77ebee20b6deb20c01c.tar.gz
mgaonline-7d114b668cc268368d6fc77ebee20b6deb20c01c.tar.bz2
mgaonline-7d114b668cc268368d6fc77ebee20b6deb20c01c.tar.xz
mgaonline-7d114b668cc268368d6fc77ebee20b6deb20c01c.zip
- when upload fail, go to authenticate step to retry again
-rwxr-xr-xmdkonline12
1 files changed, 8 insertions, 4 deletions
diff --git a/mdkonline b/mdkonline
index f24ef0e6..cbcec800 100755
--- a/mdkonline
+++ b/mdkonline
@@ -188,10 +188,14 @@ $wiz = {
}
},
post => sub {
- mdkonline::automated_upgrades($conffile, $login, md5_hex($password), $boxname, $key, $country, 'TRUE');
- mdkonline::write_wide_conf($login, $boxname, $country);
- mdkonline::clean_confdir();
- "end"
+ if ($sendconfres eq 'TRUE' && $key) {
+ mdkonline::automated_upgrades($conffile, $login, md5_hex($password), $boxname, $key, $country, 'TRUE');
+ mdkonline::write_wide_conf($login, $boxname, $country);
+ mdkonline::clean_confdir();
+ "end"
+ } else {
+ "authenticate"
+ }
},
},
end => {