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=be55dd6ab9f9423dcb20d91febc7793ea530f694 commit be55dd6ab9f9423dcb20d91febc7793ea530f694 Author: Guillem Jover <[email protected]> AuthorDate: Sun May 14 15:45:42 2023 +0200 dpkg-buildpackage: Move hook invocation closer to artifact creation We want to be able to pass addition information to the hooks, so we need the information computed earlier, and thus need to move the hook invocation later. Changelog: internal --- scripts/dpkg-buildpackage.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl index f7604980c..5d1173cd8 100755 --- a/scripts/dpkg-buildpackage.pl +++ b/scripts/dpkg-buildpackage.pl @@ -683,18 +683,15 @@ if (build_has_any(BUILD_BINARY)) { run_rules_cond_root($binarytarget); } -run_hook('buildinfo', 1); - $buildinfo_file //= "../$pva.buildinfo"; push @buildinfo_opts, "--build=$build_types" if build_has_none(BUILD_DEFAULT); push @buildinfo_opts, "--admindir=$admindir" if $admindir; push @buildinfo_opts, "-O$buildinfo_file" if $buildinfo_file; +run_hook('buildinfo', 1); run_cmd('dpkg-genbuildinfo', @buildinfo_opts); -run_hook('changes', 1); - $changes_file //= "../$pva.changes"; push @changes_opts, "--build=$build_types" if build_has_none(BUILD_DEFAULT); @@ -706,6 +703,7 @@ push @changes_opts, "-O$changes_file"; my $changes = Dpkg::Control->new(type => CTRL_FILE_CHANGES); +run_hook('changes', 1); run_cmd('dpkg-genchanges', @changes_opts); $changes->load($changes_file); -- Dpkg.Org's dpkg

