$previous_rec needed wider scope. I had accidentally narrowed the

scope when tixing the 'building' issue.
This commit is contained in:
kestes%staff.mail.com 2001-01-09 15:43:39 +00:00
Родитель 569eb984a4
Коммит d6ba91b248
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -7,8 +7,8 @@
# the build was and display a link to the build log. # the build was and display a link to the build log.
# $Revision: 1.11 $ # $Revision: 1.12 $
# $Date: 2001-01-06 01:30:37 $ # $Date: 2001-01-09 15:43:39 $
# $Author: kestes%staff.mail.com $ # $Author: kestes%staff.mail.com $
# $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/lib/TinderDB/Build.pm,v $ # $Source: /home/jrmuizel/cvs-mirror/mozilla/webtools/tinderbox2/src/lib/TinderDB/Build.pm,v $
# $Name: $ # $Name: $
@ -757,6 +757,10 @@ sub apply_db_updates {
my ($starttime) = $record->{'starttime'}; my ($starttime) = $record->{'starttime'};
my ($timenow) = $record->{'timenow'}; my ($timenow) = $record->{'timenow'};
# The time which the previous build started
my ($previous_rec) = $DATABASE{$tree}{$build}{'recs'}[0];
# sanity check the record, taint checks are done in processmail. # sanity check the record, taint checks are done in processmail.
{ {
BuildStatus::is_status_valid($buildstatus) || BuildStatus::is_status_valid($buildstatus) ||
@ -785,9 +789,6 @@ sub apply_db_updates {
if ( defined($DATABASE{$tree}{$build}{'recs'}) ) { if ( defined($DATABASE{$tree}{$build}{'recs'}) ) {
# The time which the previous build started
my ($previous_rec) = $DATABASE{$tree}{$build}{'recs'}[0];
# Why are we ignoring out of order recipts? This came from the # Why are we ignoring out of order recipts? This came from the
# original tinderbox? # original tinderbox?