Not every buildstep has a defined drvpath

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-09-03 14:43:08 -04:00
parent 04e6eda4c7
commit 788c2bebaa

View file

@ -284,6 +284,7 @@ sub findLog {
}); });
foreach my $step (@steps) { foreach my $step (@steps) {
next unless defined $step->drvpath;
my $logPath = getDrvLogPath($step->drvpath); my $logPath = getDrvLogPath($step->drvpath);
return $logPath if defined $logPath; return $logPath if defined $logPath;
} }