From bf1480cc25994ccefedb4dd61425131544270c88 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 16 Mar 2009 17:46:46 +0000 Subject: [PATCH] * Doh. --- src/script/hydra_build.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/script/hydra_build.pl b/src/script/hydra_build.pl index 2438b10d..e74fab26 100755 --- a/src/script/hydra_build.pl +++ b/src/script/hydra_build.pl @@ -92,11 +92,12 @@ sub doBuild { } if (/^@\s+build-started\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)$/) { + my $drvPathStep = $1; $db->txn_do(sub { $build->buildsteps->create( - { stepnr => ($buildSteps{$drvPath} = $buildStepNr++) + { stepnr => ($buildSteps{$drvPathStep} = $buildStepNr++) , type => 0 # = build - , drvpath => $1 + , drvpath => $drvPathStep , outpath => $2 , logfile => $4 , busy => 1 @@ -106,9 +107,9 @@ sub doBuild { } elsif (/^@\s+build-succeeded\s+(\S+)\s+(\S+)$/) { - my $drvPath = $1; + my $drvPathStep = $1; $db->txn_do(sub { - my $step = $build->buildsteps->find({stepnr => $buildSteps{$drvPath}}) or die; + my $step = $build->buildsteps->find({stepnr => $buildSteps{$drvPathStep}}) or die; $step->update({busy => 0, status => 0, stoptime => time}); }); }