about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-12-22T10·32+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-12-22T10·32+0000
commitd6c8b995c5c08a6c6a6b18f0b2cf5b4b95cfc1b1 (patch)
tree458630e1755dce0e5476a3dbccd657ab7ebc6c1c
parentc931a7aec5ccb2209d3c4bcf4452c807fe894d94 (diff)
* In Hydra manifests the Size field is missing, so don't rely on it.
  This caused a lot of "Use of uninitialized value" warnings from
  Perl.

-rw-r--r--scripts/download-using-manifests.pl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/download-using-manifests.pl.in b/scripts/download-using-manifests.pl.in
index 29321bff9472..fe80bc11f3a7 100644
--- a/scripts/download-using-manifests.pl.in
+++ b/scripts/download-using-manifests.pl.in
@@ -222,10 +222,10 @@ if ($ARGV[0] eq "--query") {
                 my $u = $edge->{start};
                 my $v = $edge->{end};
                 if ($edge->{type} eq "patch") {
-                    $downloadSize += $edge->{info}->{size};
+                    $downloadSize += $edge->{info}->{size} || 0;
                 }
                 elsif ($edge->{type} eq "narfile") {
-                    $downloadSize += $edge->{info}->{size};
+                    $downloadSize += $edge->{info}->{size} || 0;
                 }
             }