From: Tobias Ulmer Date: Thu, 28 Feb 2013 19:45:37 +0000 (+0100) Subject: Export licenceid() function X-Git-Tag: e2factory-2.3.13rc2~9 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=956e1615cad4579da29f42f365296c78ed5ed0fd;p=e2factory.git Export licenceid() function Required by files plugin. Signed-off-by: Tobias Ulmer --- diff --git a/local/e2tool.lua b/local/e2tool.lua index b22a966..f104a6c 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -2062,7 +2062,7 @@ end -- @param licence -- @return string -- @return an error object on failure -local function licenceid(info, licence) +function e2tool.licenceid(info, licence) local rc, re local e = err.new("calculating licence id failed for licence: %s", licence) @@ -2188,7 +2188,7 @@ function e2tool.pbuildid(info, resultname) hash.hash_line(hc, l) -- name -- We collect all licences. So we cannot be sure to catch -- them via results/sources. Include them explicitly here. - local lid, re = licenceid(info, l) + local lid, re = e2tool.licenceid(info, l) if not lid then return nil, e:cat(re) end