From: Gordon Hecker Date: Fri, 19 Jun 2009 11:54:33 +0000 (+0200) Subject: remove support for calling the finish hook X-Git-Tag: e2factory-2.3.2rc1~68 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=bf2c317ae51038328ac10d15b649a79c7ca3cae9;p=e2factory.git remove support for calling the finish hook Signed-off-by: Gordon Hecker --- diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 6499ba9..05477fd 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -70,7 +70,6 @@ e2lib = { env = {}, last_output = false, abort_hook = false, - finish_hook = false, tmpdirs = {}, tmpfiles = {}, enable_invocation_log = false, @@ -491,17 +490,13 @@ function e2lib.log_invocation(info, args) end end ---- exit from the tool, cleaning up temporary files and directories and --- running the finish_hook before. +--- exit from the tool, cleaning up temporary files and directories -- @param rc number: return code (optional, defaults to 0) -- @return This function does not return. function e2lib.finish(rc) if not rc then rc = 0 end - if e2lib.finish_hook then - e2lib.finish_hook(rc) - end e2lib.rmtempdirs() e2lib.rmtempfiles() os.exit(rc)