summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-11 16:29:53 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-11 16:29:53 +0000
commit0b9d8fcd17624cc66a3df4920d9c9e33a160d8a7 (patch)
treeee147f1231f6c2202168b701e49ea302532388ab /mdkupdate
parent3446860b59cf9d736838b4d69d433cc56d1e85b9 (diff)
downloadmgaonline-0b9d8fcd17624cc66a3df4920d9c9e33a160d8a7.tar
mgaonline-0b9d8fcd17624cc66a3df4920d9c9e33a160d8a7.tar.gz
mgaonline-0b9d8fcd17624cc66a3df4920d9c9e33a160d8a7.tar.bz2
mgaonline-0b9d8fcd17624cc66a3df4920d9c9e33a160d8a7.tar.xz
mgaonline-0b9d8fcd17624cc66a3df4920d9c9e33a160d8a7.zip
check (and explain) when we failed to register the host config for a
bundle (eg because of a unsupported distro)
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate5
1 files changed, 5 insertions, 0 deletions
diff --git a/mdkupdate b/mdkupdate
index 2619efc5..ffed5c07 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -193,6 +193,11 @@ if (!$bundle) {
$wc->{USER_EMAIL} or die("Configuration not uploaded to Mandriva Online");
my $res = mdkonline::prepare_upload_conf($wc);
+ if ($res ne 'OK') {
+ log::explanations("we failed to be accepted by the server: $bundle_info->{message}");
+ $in->ask_warn(N("Error"), N("An error occurred") . "\n\n" . $res);
+ }
+
if ($bundle_vars{CLIENT_VERSION} > $CLIENT_VERSION) {
log::explanations("the client is too old in order to install the bundle $bundle_vars{BUNDLE}");
$in->ask_warn(N("Warning"), N("The version of the Mandriva Online client is too old.