make_version_h.pl: remove everything after ~ or +

Closes: #1120638
This commit is contained in:
Marco d'Itri 2026-02-16 01:41:49 +01:00
parent d268ab6f58
commit 33235c0517
No known key found for this signature in database
GPG Key ID: CB3EC33AE1DED781

View File

@ -17,11 +17,8 @@ die "Version number not found in $changelog!\n" if not $ver;
$ver =~ s/ (
build\d+
| ubuntu\d+
| ~bpo\d+\+\d+
| ~deb\d+.*
| \+b\d+
| \+dyson\d+
| \+salsaci\+.+
| ~\S+
| \+\S+
) $//x;
# The version number must not deviate from this format or the -V option