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

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=0740da6a975a87135d448d3412240202729184c5

commit 0740da6a975a87135d448d3412240202729184c5 (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Wed Jul 6 02:29:19 2022 +0200

    Dpkg::Source::Package::V1: Remove redundant exit handler for erasedir()
    
    We are adding an exit handler for the same function, which means that if
    it fails, it will most probably fail again on the exist handler. So there
    is no much point in this.
---
 scripts/Dpkg/Source/Package/V1.pm | 2 --
 1 file changed, 2 deletions(-)

diff --git a/scripts/Dpkg/Source/Package/V1.pm 
b/scripts/Dpkg/Source/Package/V1.pm
index 3aa2e867b..863a5faef 100644
--- a/scripts/Dpkg/Source/Package/V1.pm
+++ b/scripts/Dpkg/Source/Package/V1.pm
@@ -449,9 +449,7 @@ sub do_build {
                          'giving up; use -sA, -sK or -sP to override'),
                       $origdir);
             }
-            push_exit_handler(sub { erasedir($origdir) });
             erasedir($origdir);
-            pop_exit_handler();
         } elsif ($! != ENOENT) {
             syserr(g_("unable to check for existence of orig directory '%s'"),
                     $origdir);

-- 
Dpkg.Org's dpkg

Reply via email to