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=945f6d49b613c311ccc1fbceda639771acf28618 commit 945f6d49b613c311ccc1fbceda639771acf28618 Author: Guillem Jover <guil...@debian.org> AuthorDate: Wed Sep 29 02:00:03 2021 +0200 build: Use new Dpkg::Control keep_duplicate option This way we can handle multiple fields with the same name but different value. --- gen-changelog | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gen-changelog b/gen-changelog index a09d5a5df..ee073c6c8 100755 --- a/gen-changelog +++ b/gen-changelog @@ -165,6 +165,7 @@ spawn( my $log = Dpkg::Index->new( get_key_func => sub { return $_[0]->{Commit} }, item_opts => { + keep_duplicate => 1, allow_duplicate => 1, }, ); @@ -262,7 +263,12 @@ foreach my $groupname (@groups, sort @groups_l10n) { foreach my $metafield (@metafields) { next unless exists $commit->{$metafield}; - $title .= "\n$metafield{$metafield} $commit->{$metafield}."; + my $values = $commit->{$metafield}; + $values = [ $values ] if ref $values ne 'ARRAY'; + + foreach my $value (@{$values}) { + $title .= "\n$metafield{$metafield} $value."; + } } # Handle the Closes metafield last. if (exists $commit->{Closes}) { -- Dpkg.Org's dpkg