]> git.e2factory.org Git - e2factory.git/commitdiff
collect_project: fix error handling in unpack code generation
authorGordon Hecker <gh@emlix.com>
Mon, 19 Apr 2010 06:42:56 +0000 (08:42 +0200)
committerGordon Hecker <gh@emlix.com>
Mon, 19 Apr 2010 10:43:41 +0000 (12:43 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/files.lua

index 20444f3ace5e1dfc5abfd41d5c8225643485e798..1b372f5a32b32c55d366cc89afca9bd3b4514be2 100644 (file)
@@ -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,