diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-03-03 13:59:45 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-03-03 13:59:45 +0000 |
commit | f176e8c2eff9ff3814d7b77848546bb833736cfd (patch) | |
tree | 3b684d3d18b6b34f89b277dcc1743e873244329a | |
parent | 311b144bc5a592c1a73b15eaea832e150f17185a (diff) | |
download | mgaonline-f176e8c2eff9ff3814d7b77848546bb833736cfd.tar mgaonline-f176e8c2eff9ff3814d7b77848546bb833736cfd.tar.gz mgaonline-f176e8c2eff9ff3814d7b77848546bb833736cfd.tar.bz2 mgaonline-f176e8c2eff9ff3814d7b77848546bb833736cfd.tar.xz mgaonline-f176e8c2eff9ff3814d7b77848546bb833736cfd.zip |
force the user to update the client if the bundle needs it
-rwxr-xr-x | mdkupdate | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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}) { |