Skip to content
Snippets Groups Projects
Commit 1f9d4053 authored by Guillem Jover's avatar Guillem Jover
Browse files

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
parent 6464cc40
No related branches found
No related tags found
1 merge request!4Update crimson to version from bookworm
......@@ -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'}))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment