util/mknum.pl: Really allow unset ordinals in development
authorRichard Levitte <levitte@openssl.org>
Wed, 2 Jun 2021 04:20:05 +0000 (06:20 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 3 Jun 2021 07:18:54 +0000 (09:18 +0200)
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)

util/mknum.pl

index 92435a871221836e0b7919174b6fc657929b28b3..284fe891ef45f24272e88a2b1952af9e2cd425c6 100644 (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
-# symbols without specific numbers assigned.  When in beta or final release,
-# all symbols MUST have an assigned number.
-if ($version !~ m/^\d+\.\d+\.\d+(?:[a-z]+)?-(?:dev|alpha)/) {
+# symbols without specific numbers assigned.  In beta or final release, all
+# symbols MUST have an assigned number.
+if ($version !~ m/^\d+\.\d+\.\d+(?:-alpha|(?:-.*?)?-dev$)/) {
     $ordinals->renumber();
 }