diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-12-22T10·32+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-12-22T10·32+0000 |
commit | d6c8b995c5c08a6c6a6b18f0b2cf5b4b95cfc1b1 (patch) | |
tree | 458630e1755dce0e5476a3dbccd657ab7ebc6c1c /scripts | |
parent | c931a7aec5ccb2209d3c4bcf4452c807fe894d94 (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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/download-using-manifests.pl.in | 4 |
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; } } |