summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2004-05-20 16:52:35 +0000
committerFrederic Lepied <flepied@mandriva.com>2004-05-20 16:52:35 +0000
commit8ba6484055478436467a60cab9d9c76c181ff157 (patch)
tree35782f1feae9282aeb1aa3b4a539113827f0bd03
parentd3e3f77b2256ec1f83b488c9ddfd8f3c2e758a2c (diff)
downloadmgaonline-8ba6484055478436467a60cab9d9c76c181ff157.tar
mgaonline-8ba6484055478436467a60cab9d9c76c181ff157.tar.gz
mgaonline-8ba6484055478436467a60cab9d9c76c181ff157.tar.bz2
mgaonline-8ba6484055478436467a60cab9d9c76c181ff157.tar.xz
mgaonline-8ba6484055478436467a60cab9d9c76c181ff157.zip
corrected error reporting check
-rwxr-xr-xmdkupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkupdate b/mdkupdate
index 9a0af7df..fba9ec0f 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -81,7 +81,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) {
my $contents = $resp->content;
#print "CONTENTS = $contents \n";
if ($resp->is_success) {
- if ($contents =~ /TRUE/) { $u = 10 } elsif ($contents = m/(\d+)/) { $u = sprintf("%d", $1) } else { $u = 83 } ;
+ if ($contents =~ /TRUE/) { $u = 10 } elsif ($contents =~ m/(\d+)/) { $u = sprintf("%d", $1) } else { $u = 83 } ;
my $action = {
10 => sub {
my $c2h = splitContents($contents);