From 182f725612ec2b71009c02fc80cbc8d2cffbe7c3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 12 Aug 2013 18:15:11 +0200 Subject: [PATCH] Don't pass an undefined input --- src/lib/Hydra/Helper/AddBuilds.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index 734a97aa..6f51b98d 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -89,7 +89,7 @@ sub fetchInputBuild { if (!defined $prevBuild || !isValidPath(getMainOutput($prevBuild)->path)) { print STDERR "input `", $name, "': no previous build available\n"; - return undef; + return (); } #print STDERR "input `", $name, "': using build ", $prevBuild->id, "\n";