]> git.e2factory.org Git - e2factory.git/commitdiff
remove support for calling the finish hook
authorGordon Hecker <gh@emlix.com>
Fri, 19 Jun 2009 11:54:33 +0000 (13:54 +0200)
committerGordon Hecker <gh@emlix.com>
Fri, 19 Jun 2009 11:54:33 +0000 (13:54 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
generic/e2lib.lua

index 6499ba96029fb2970847aa47f586d07b8daf042f..05477fdb8316d8320d064c1c2fc3aa70630f865d 100644 (file)
@@ -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)