From f176e8c2eff9ff3814d7b77848546bb833736cfd Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 3 Mar 2006 13:59:45 +0000 Subject: force the user to update the client if the bundle needs it --- mdkupdate | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mdkupdate b/mdkupdate index 9946b5ef..4c2dece1 100755 --- a/mdkupdate +++ b/mdkupdate @@ -140,6 +140,13 @@ if (!$bundle) { $wc->{USER_EMAIL} or die("Configuration not uploaded to Mandriva Online"); my $res = mdkonline::prepare_upload_conf($wc); + if (my $version = $bundle_vars{CLIENT_VERSION} >= $VERSION) { + print "TOTO\n"; + $in->ask_warn(N("Warning"), N("The version of the Mandriva Online client is too old. + +You need to update to a newer version. You can get a new one from http://start.mandriva.com")); + $in->exit(1); + } $res eq 'OK' and $bundle_info = mdkonline::soap_query_bundle($wc, $bundle_vars{BUNDLE}); print Data::Dumper->Dump([ $bundle_info ], [ qw(bundle_info) ]); if ($bundle_info->{status}) { -- cgit v1.2.1