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=74f1303aa830bd1e1b24bc9a220ce43d2f33f757 commit 74f1303aa830bd1e1b24bc9a220ce43d2f33f757 Author: Guillem Jover <[email protected]> AuthorDate: Tue Jan 5 18:13:50 2021 +0100 build: Use a stable order for metafields when generating the changelog Changelog: silent --- gen-changelog | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/gen-changelog b/gen-changelog index c05797e22..58637e0de 100755 --- a/gen-changelog +++ b/gen-changelog @@ -103,6 +103,22 @@ my %sections = ( }, ); +my @metafields = qw( + Thanks-to + Co-Author + Based-on-patch-by + Improved-by + Prompted-by + Reported-by + Required-by + Analysis-by + Requested-by + Suggested-by + Spotted-by + Naming-by + Ref +); + my %metafield = ( 'Co-Author' => 'Co-authored by', 'Based-on-patch-by' => 'Based on a patch by', @@ -243,7 +259,7 @@ foreach my $groupname (@groups, sort @groups_l10n) { if ($grouptype ne 'l10n' and $commit->{Author} ne $commit->{Committer}) { $commit->{'Thanks-to'} = "$commit->{Author} <$commit->{AuthorEmail}>"; } - foreach my $metafield (keys %metafield) { + foreach my $metafield (@metafields) { next unless exists $commit->{$metafield}; $title .= "\n$metafield{$metafield} $commit->{$metafield}."; -- Dpkg.Org's dpkg

