summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-11 16:32:35 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-11 16:32:35 +0000
commita9e9efaca807ecdc42900358566cdf09e0bc3053 (patch)
tree18a0cd25f2ff11f4a746bd20542ee42471753e15 /mdkupdate
parent0999f35402d5323ea9c386a7d17bcec2c8d10c8c (diff)
downloadmgaonline-a9e9efaca807ecdc42900358566cdf09e0bc3053.tar
mgaonline-a9e9efaca807ecdc42900358566cdf09e0bc3053.tar.gz
mgaonline-a9e9efaca807ecdc42900358566cdf09e0bc3053.tar.bz2
mgaonline-a9e9efaca807ecdc42900358566cdf09e0bc3053.tar.xz
mgaonline-a9e9efaca807ecdc42900358566cdf09e0bc3053.zip
properly check we get back the data about the bundle
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdkupdate b/mdkupdate
index 866e752f..82423fb8 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -161,7 +161,6 @@ if (!$bundle) {
$in->exit(1);
}
my $w = $in->wait_message(N("Please wait"), N("Preparing..."));
- my $bundle_info;
my %bundle_vars = getVarsFromSh($bundle);
rm_rf($bundle);
@@ -205,9 +204,10 @@ if (!$bundle) {
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});
+ my $bundle_info = mdkonline::soap_query_bundle($wc, $bundle_vars{BUNDLE});
+ $res = mdkonline::check_server_response($bundle_info);
print Data::Dumper->Dump([ $bundle_info ], [ qw(bundle_info) ]);
- if ($bundle_info->{status}) {
+ if ($res eq 'OK') {
my @bundles;
$w = $in->wait_message(N("Please wait"), N("Preparing..."));
my ($mirrors, $bundle) = ($bundle_info->{data}{mirrors}, $bundle_info->{data}{bundle});