]> git.e2factory.org Git - e2factory.git/commitdiff
bugfix: fix an incorrect return value that lead to a backtrace when calculating filei...
authorGordon Hecker <gh@emlix.com>
Tue, 19 Jan 2010 12:43:57 +0000 (13:43 +0100)
committerGordon Hecker <gh@emlix.com>
Fri, 12 Feb 2010 09:51:58 +0000 (10:51 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2tool.lua

index ac4d0c923b35cc90fb5b70f48c0f8e2a46849dab..aeb4e71b2c193137ee084476f077d17a39618515 100644 (file)
@@ -1256,11 +1256,11 @@ function e2tool.hashcache(info, file)
        local rc, re, fileid
        local p, re = info.cache:file_path(file.server, file.location, {})
        if not p then
-               return e:cat(re)
+               return nil, e:cat(re)
        end
        local s = e2util.stat(p)
        if not s then
-               return e:cat(new_error("stat() failed"))
+               return nil, e:cat(new_error("stat() failed"))
        end
        local id = string.format("%s:%s", file.server, file.location)
        local fileid