From: Gordon Hecker Date: Mon, 19 Apr 2010 06:42:56 +0000 (+0200) Subject: collect_project: fix error handling in unpack code generation X-Git-Tag: e2factory-2.3.5~1 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=0a7577683590cab9f791336237517e1d200915f2;p=e2factory.git collect_project: fix error handling in unpack code generation Signed-off-by: Gordon Hecker --- diff --git a/local/files.lua b/local/files.lua index 20444f3..1b372f5 100644 --- a/local/files.lua +++ b/local/files.lua @@ -399,9 +399,12 @@ function files.toresult(info, sourcename, sourceset, directory) string.format("%s/%s", source, e2lib.basename(file.location)), string.format("$(BUILD)")) - if c then - f:write(string.format("\t%s\n", c)) + if not c then + return false, e:cat("%s:%s: ".. + "can't generate command to unpack", + file.server, file.location) end + f:write(string.format("\t%s\n", c)) if file.unpack ~= sourcename then f:write(string.format( "\tln -s %s $(BUILD)/%s\n", file.unpack,