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=1f9d4053b7533ea9caca496f444ec22fd5687ba2

commit 1f9d4053b7533ea9caca496f444ec22fd5687ba2
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Oct 24 23:13:19 2022 +0200

    dpkg-genchanges: Refactor $is_backport check into a boolean
    
    Move this check into its own boolean, so that in the future we can
    extend it to be based on some other criteria, such as a new changelog
    keyword.
    
    Changelog: internal
---
 scripts/dpkg-genchanges.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl
index bc8dc0c98..a8cf3b5d9 100755
--- a/scripts/dpkg-genchanges.pl
+++ b/scripts/dpkg-genchanges.pl
@@ -218,10 +218,10 @@ $substvars->set_arch_substvars();
 $substvars->load('debian/substvars') if -e 'debian/substvars' and not 
$substvars_loaded;
 
 my $backport_version_regex = run_vendor_hook('backport-version-regex') // 
qr/^$/;
+my $is_backport = $changelog->{'Version'} =~ m/$backport_version_regex/;
 
 # Versions with backport markers have a lower version number by definition.
-if (defined($prev_changelog) and
-    $changelog->{'Version'} !~ /$backport_version_regex/ and
+if (! $is_backport && defined $prev_changelog &&
     version_compare_relation($changelog->{'Version'}, REL_LT,
                              $prev_changelog->{'Version'}))
 {

-- 
Dpkg.Org's dpkg

Reply via email to