From 0b9d8fcd17624cc66a3df4920d9c9e33a160d8a7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 11 Apr 2006 16:29:53 +0000 Subject: check (and explain) when we failed to register the host config for a bundle (eg because of a unsupported distro) --- mdkupdate | 5 +++++ 1 file changed, 5 insertions(+) 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. -- cgit v1.2.1