This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=63a5a2c2de2f3bc4d3353bd021a909f5e4555bad

commit 63a5a2c2de2f3bc4d3353bd021a909f5e4555bad
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Sat Jan 30 07:23:43 2021 +0100

    Dpkg::Exit: Preserve exit code in END block
    
    Otherwise we can exit programs with an arbitrary exit code if we call
    other commands during the exit hooks.
    
    This was affecting for example a failing dpkg-source invoked from
    dpkg-buildpackage.
---
 scripts/Dpkg/Exit.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/Dpkg/Exit.pm b/scripts/Dpkg/Exit.pm
index 07f122fab..460b4eec1 100644
--- a/scripts/Dpkg/Exit.pm
+++ b/scripts/Dpkg/Exit.pm
@@ -105,6 +105,7 @@ sub _reset_exit_handlers
 }
 
 END {
+    local $?;
     run_exit_handlers();
 }
 

-- 
Dpkg.Org's dpkg

Reply via email to