From: Gordon Hecker Date: Thu, 18 Feb 2010 13:36:44 +0000 (+0100) Subject: add new external tool: gzip X-Git-Tag: e2factory-2.3.4pre2~10 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=1def6d0784ef5889dc61a63ef1f1575b81a3a2d3;p=e2factory.git add new external tool: gzip Signed-off-by: Gordon Hecker --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index d0ffd15..22c2f65 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -1515,6 +1515,15 @@ function rsync(args) return call_tool("rsync", args) end +--- call the gzip command +-- @param file string: file to compress +-- @return bool +-- @return the last line ouf captured output +function gzip(file) + local args = string.format("'%s'", file) + return call_tool("gzip", args) +end + --- call the catcommand -- @param args -- @return bool diff --git a/generic/tools.lua b/generic/tools.lua index b639fc6..9020152 100644 --- a/generic/tools.lua +++ b/generic/tools.lua @@ -53,6 +53,7 @@ local tools = { touch = { name = "touch", flags = "", optional = false }, uname = { name = "uname", flags = "", optional = false }, patch = { name = "patch", flags = "", optional = false }, + gzip = { name = "gzip", flags = "", optional = false }, ["e2-su"] = { name = buildconfig.PREFIX .. "/bin/e2-su", flags = "", optional = false }, ["e2-su-2.2"] = { name = buildconfig.PREFIX .. "/bin/e2-su-2.2",