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=71f93f12abe9530f916a5c062e170b481bdfd268

commit 71f93f12abe9530f916a5c062e170b481bdfd268
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Thu Dec 1 15:51:53 2022 +0100

    dpkg-buildpackage: Turn items into lists for easier extensibility
    
    Change the code and the man page.
    
    Changelog: internal
---
 man/dpkg-buildpackage.pod    | 26 +++++++++++++++++++++++++-
 scripts/dpkg-buildpackage.pl | 26 +++++++++++++++++++++++---
 2 files changed, 48 insertions(+), 4 deletions(-)

diff --git a/man/dpkg-buildpackage.pod b/man/dpkg-buildpackage.pod
index 0e2ecc555..8dae99961 100644
--- a/man/dpkg-buildpackage.pod
+++ b/man/dpkg-buildpackage.pod
@@ -485,7 +485,31 @@ their commands fail, so watch out for unintended 
consequences.
 
 The current I<hook-name> supported are:
 
-B<init preclean source build binary buildinfo changes postclean check sign 
done>
+=over
+
+=item B<init>
+
+=item B<preclean>
+
+=item B<source>
+
+=item B<build>
+
+=item B<binary>
+
+=item B<buildinfo>
+
+=item B<changes>
+
+=item B<postclean>
+
+=item B<check>
+
+=item B<sign>
+
+=item B<done>
+
+=back
 
 The I<hook-command> supports the following substitution format string,
 which will get applied to it before execution:
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index 408a7a9aa..f4760c0db 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -202,13 +202,33 @@ my @buildinfo_opts;
 my $changes_file;
 my @changes_opts;
 my %target_legacy_root = map { $_ => 1 } qw(
-    clean binary binary-arch binary-indep
+    clean
+    binary
+    binary-arch
+    binary-indep
 );
 my %target_official =  map { $_ => 1 } qw(
-    clean build build-arch build-indep binary binary-arch binary-indep
+    clean
+    build
+    build-arch
+    build-indep
+    binary
+    binary-arch
+    binary-indep
 );
 my @hook_names = qw(
-    init preclean source build binary buildinfo changes postclean check sign 
done
+    preinit
+    init
+    preclean
+    source
+    build
+    binary
+    buildinfo
+    changes
+    postclean
+    check
+    sign
+    done
 );
 my %hook;
 $hook{$_} = undef foreach @hook_names;

-- 
Dpkg.Org's dpkg

Reply via email to