summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-04 13:09:01 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-04 13:09:01 +0000
commit010c61607dae1edbf4d5843d8c957d554106f7c0 (patch)
tree358cad0c888731bb2a27cc893e4ce8222635d844
parentd18748d13ba0e0c880e21297b033428a9e304aaf (diff)
downloadmgaonline-010c61607dae1edbf4d5843d8c957d554106f7c0.tar
mgaonline-010c61607dae1edbf4d5843d8c957d554106f7c0.tar.gz
mgaonline-010c61607dae1edbf4d5843d8c957d554106f7c0.tar.bz2
mgaonline-010c61607dae1edbf4d5843d8c957d554106f7c0.tar.xz
mgaonline-010c61607dae1edbf4d5843d8c957d554106f7c0.zip
we've no previous config so add missing fields to server's answer
-rwxr-xr-xmdkupdate2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdkupdate b/mdkupdate
index 16999bf4..a2ace304 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -180,6 +180,8 @@ if (!$bundle) {
$in->ask_warn(N("Error"), N("Failed to authenticate to the bundle server:\n\n%s", $reg_host->{message}));
exit(3);
}
+ # we've no previous config so add missing fields to server's answer:
+ $reg_host->{data}{user_email} ||= $bundle_vars{USER};
mdkonline::write_wide_conf($reg_host);
}