summaryrefslogtreecommitdiffstats
path: root/scripts/dpkg-mergechangelogs.pl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:40:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:40:37 +0000
commitcabd780cae125bed23f70d57db05ae0f32d8df4c (patch)
treeaa0333438759b0295022ef95bd38df6b7226a89c /scripts/dpkg-mergechangelogs.pl
parentReleasing progress-linux version 1.22.4-0.0~progress7.99u1. (diff)
downloaddpkg-cabd780cae125bed23f70d57db05ae0f32d8df4c.tar.xz
dpkg-cabd780cae125bed23f70d57db05ae0f32d8df4c.zip
Merging upstream version 1.22.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xscripts/dpkg-mergechangelogs.pl15
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/dpkg-mergechangelogs.pl b/scripts/dpkg-mergechangelogs.pl
index 5c75014..f6d7879 100755
--- a/scripts/dpkg-mergechangelogs.pl
+++ b/scripts/dpkg-mergechangelogs.pl
@@ -116,13 +116,14 @@ my @b = reverse @$chb;
my @result; # Lines to output
my $exitcode = 0; # 1 if conflict encountered
-unless (merge_block($cho, $cha, $chb, sub {
- my $changes = shift;
- my $tail = $changes->get_unparsed_tail();
- chomp $tail if defined $tail;
- return $tail;
- }))
-{
+sub merge_tail {
+ my $changes = shift;
+ my $tail = $changes->get_unparsed_tail();
+ chomp $tail if defined $tail;
+ return $tail;
+};
+
+unless (merge_block($cho, $cha, $chb, \&merge_tail)) {
merge_conflict($cha->get_unparsed_tail(), $chb->get_unparsed_tail());
}