]> git.e2factory.org Git - e2factory.git/commitdiff
Export licenceid() function
authorTobias Ulmer <tu@emlix.com>
Thu, 28 Feb 2013 19:45:37 +0000 (20:45 +0100)
committerTobias Ulmer <tu@emlix.com>
Thu, 28 Feb 2013 19:45:37 +0000 (20:45 +0100)
Required by files plugin.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2tool.lua

index b22a96685fd9601a06f9cd594472f32120afdf24..f104a6c2f15c911f0d5c8208f25eab9a19390d69 100644 (file)
@@ -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