From 91a6fab74f01ffa6a63575af733041fc6f4ad19c Mon Sep 17 00:00:00 2001 From: "preed%mozilla.com" Date: Tue, 20 Feb 2007 23:00:22 +0000 Subject: [PATCH] Bug 371062: Fix two regressions with past release update snippet handling. r=rhelmer --- tools/patcher/patcher2.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/patcher/patcher2.pl b/tools/patcher/patcher2.pl index 03098dbb9f1..fc7138b1d3f 100755 --- a/tools/patcher/patcher2.pl +++ b/tools/patcher/patcher2.pl @@ -901,7 +901,6 @@ sub CreatePastReleasePatchinfo { $completePatch ->{'info_path'} = catfile($ausPrefix, 'complete.txt'); - my $prettyPrefix = "$pastUpd->{'from'}-$update->{'to'}"; PrintProgress(total => $totalPastUpdates, current => ++$patchInfoFilesCreated, @@ -920,13 +919,13 @@ sub CreatePastReleasePatchinfo { $completePatch->{'build_id'} = $patchLocaleNode->{'build_id'}; $completePatch->{'appv'} = $patchLocaleNode->{'appv'}; $completePatch->{'extv'} = $patchLocaleNode->{'extv'}; - $completePatch->{'size'} = (stat($to_path))[$MozAUSLib::ST_SIZE]; + $completePatch->{'size'} = (stat($to_path))[$ST_SIZE]; my $channelSpecificUrlKey = $channel . '-url'; - if (exists($completePatch->{$channelSpecificUrlKey})) { + if (exists($complete->{$channelSpecificUrlKey})) { $completePatch->{'url'} = SubstitutePath( - path => $completePatch->{$channelSpecificUrlKey}, + path => $complete->{$channelSpecificUrlKey}, platform => $toPlatform, locale => $locale); } else {