util/mknum.pl: Really allow unset ordinals in development

Any pre-release tag that includes '-dev' is development.  The ordinals
don't need to be finalized before '-dev' is removed (i.e. a release is
made).

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15578)
This commit is contained in:
Richard Levitte 2021-06-02 06:20:05 +02:00
parent ba3ea453b0
commit cbba082fc0

View File

@ -89,9 +89,9 @@ foreach my $f (($symhacks_file // (), @ARGV)) {
} }
# As long as we're running in development or alpha releases, we can have # As long as we're running in development or alpha releases, we can have
# symbols without specific numbers assigned. When in beta or final release, # symbols without specific numbers assigned. In beta or final release, all
# all symbols MUST have an assigned number. # symbols MUST have an assigned number.
if ($version !~ m/^\d+\.\d+\.\d+(?:[a-z]+)?-(?:dev|alpha)/) { if ($version !~ m/^\d+\.\d+\.\d+(?:-alpha|(?:-.*?)?-dev$)/) {
$ordinals->renumber(); $ordinals->renumber();
} }