From d6c8b995c5c08a6c6a6b18f0b2cf5b4b95cfc1b1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 22 Dec 2010 10:32:32 +0000 Subject: [PATCH] * 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. --- scripts/download-using-manifests.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/download-using-manifests.pl.in b/scripts/download-using-manifests.pl.in index 29321bff9..fe80bc11f 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; } }