The following commit has been merged in the master branch:
commit c32c4bf1d9d6d4b84206315c97f47b68d6eb460c
Author: Guillem Jover <[email protected]>
Date:   Sat Nov 7 15:12:16 2009 +0100

    dpkg: Call standard_shutdown after invoking the post hooks
    
    The error unwinding is part of the shutdown, and the invoke hooks
    machinery might call ohshit, so it should be done at the end when
    there's no more error handling in place.

diff --git a/src/main.c b/src/main.c
index f424e56..256c0b3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -721,10 +721,10 @@ int main(int argc, const char *const *argv) {
 
   actionfunction(argv);
 
-  standard_shutdown();
-
   if (is_invoke_action(cipaction->arg))
     run_invoke_hooks(cipaction->olong, post_invoke_hooks);
 
+  standard_shutdown();
+
   return reportbroken_retexitstatus();
 }

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to