summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-03 13:59:45 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-03 13:59:45 +0000
commitf176e8c2eff9ff3814d7b77848546bb833736cfd (patch)
tree3b684d3d18b6b34f89b277dcc1743e873244329a /mdkupdate
parent311b144bc5a592c1a73b15eaea832e150f17185a (diff)
downloadmgaonline-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
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate7
1 files changed, 7 insertions, 0 deletions
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}) {