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=4de809297ac41c929c10f74189c431c198e66d66 commit 4de809297ac41c929c10f74189c431c198e66d66 Author: Guillem Jover <[email protected]> AuthorDate: Thu Mar 3 01:42:17 2022 +0100 build: Use sort flag instead of hardcoding the section in gen-changelog The l10n section needs to be sorted, given its uniformity and repetition. Instead of hardcoding the name of the section, add a new flag that generalizes it and can be used by other sections if desired. --- build-aux/gen-changelog | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build-aux/gen-changelog b/build-aux/gen-changelog index ed8c175ef..24bd7b07a 100755 --- a/build-aux/gen-changelog +++ b/build-aux/gen-changelog @@ -102,6 +102,7 @@ my %sections = ( title => 'Localization', group => \&gen_l10n_group, match => qr/^po: /, + sort => 1, }, ); @@ -315,11 +316,11 @@ foreach my $groupname (@groups, sort @groups_l10n) { push @entries, wrap($entry_tab, $body_tab, $title) . "\n"; } - if ($grouptype eq 'l10n') { - print uniq(sort @entries); - } else { - print @entries; + if ($sections{$sectname}->{sort}) { + @entries = uniq(sort @entries); } + + print @entries; } } 1; -- Dpkg.Org's dpkg

