summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2005-02-09 14:54:51 +0000
committerDaouda Lo <daouda@mandriva.com>2005-02-09 14:54:51 +0000
commitf71304593841b287109192fcfd5693ce475af260 (patch)
tree095e7cf1f01f406ce608670a5611ca492ccf2c31
parentf0f27dea55f8b3dd195079a8563d5ce6fec45fbd (diff)
downloadmgaonline-f71304593841b287109192fcfd5693ce475af260.tar
mgaonline-f71304593841b287109192fcfd5693ce475af260.tar.gz
mgaonline-f71304593841b287109192fcfd5693ce475af260.tar.bz2
mgaonline-f71304593841b287109192fcfd5693ce475af260.tar.xz
mgaonline-f71304593841b287109192fcfd5693ce475af260.zip
- return code according to mnf standards
-rwxr-xr-xmdkonline10
1 files changed, 7 insertions, 3 deletions
diff --git a/mdkonline b/mdkonline
index cbcec800..abaa35a3 100755
--- a/mdkonline
+++ b/mdkonline
@@ -216,9 +216,13 @@ if ($login && $password && $boxname) {
if ($sendconfres eq 'TRUE' && $key) {
mdkonline::automated_upgrades($conffile, $login, md5_hex($password), $boxname, $key, $country, 'TRUE');
mdkonline::write_wide_conf($login, $boxname, $country);
- output_p($logfile, N("Configuration uploaded successfully"))
- } else { output_p($logfile, N("Problem uploading configuration")) }
- } else { output_p($logfile, N("Cannot connect to mandrakeonline website: wrong login/password or router/firewall bad settings")) }
+ output_p($logfile, N("Configuration uploaded successfully"));
+ return 0;
+ } else { output_p($logfile, N("Problem uploading configuration")); return 1; }
+ } else {
+ output_p($logfile, N("Cannot connect to mandrakeonline website: wrong login/password or router/firewall bad settings"));
+ return 255;
+ }
} else {
wizards->new->safe_process($wiz, $in);
}