From: Tobias Ulmer Date: Wed, 22 Jun 2016 15:30:10 +0000 (+0200) Subject: inline e2tool.bid_display() X-Git-Tag: e2factory-2.3.15rc1~141 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=3efb10b9d1f5c2b832012b4fa6c4c0bc0642b907;p=e2factory.git inline e2tool.bid_display() Signed-off-by: Tobias Ulmer --- diff --git a/local/e2build.lua b/local/e2build.lua index fe8bfc1..98a5ad3 100644 --- a/local/e2build.lua +++ b/local/e2build.lua @@ -111,7 +111,7 @@ local function result_available(info, resultname, return_flags) return false, e:cat(re) end - sbid = e2tool.bid_display(buildid) + sbid = string.format("%s...", string.sub(buildid, 1, 8)) if result.build_settings.playground:lookup(resultname) then return_flags.message = e2lib.align(columns, diff --git a/local/e2tool.lua b/local/e2tool.lua index 2fe9364..1ea2674 100644 --- a/local/e2tool.lua +++ b/local/e2tool.lua @@ -945,13 +945,6 @@ function e2tool.fileid(info, file) return fileid end ---- return the first eight digits of buildid hash --- @param buildid string: hash value --- @return string: a short representation of the hash value -function e2tool.bid_display(buildid) - return string.format("%s...", string.sub(buildid, 1, 8)) -end - --- Get the buildid for a result, calculating it if required. -- @param info Info table. -- @param resultname Result name.