From 0a7577683590cab9f791336237517e1d200915f2 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Mon, 19 Apr 2010 08:42:56 +0200 Subject: [PATCH] collect_project: fix error handling in unpack code generation Signed-off-by: Gordon Hecker --- local/files.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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, -- 2.39.5