You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2023/03/13 19:07:54 UTC

[solr] branch main updated: Fix version parsing in dev-tools

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 637f3705e87 Fix version parsing in dev-tools
637f3705e87 is described below

commit 637f3705e87510dfb3ef2bca8625a184982bb1e7
Author: Houston Putman <ho...@apache.org>
AuthorDate: Mon Mar 13 15:07:48 2023 -0400

    Fix version parsing in dev-tools
    
    Relates to a change created by SOLR-16346
---
 dev-tools/scripts/addVersion.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-tools/scripts/addVersion.py b/dev-tools/scripts/addVersion.py
index b84c39f4c3b..e1a0d381bfc 100755
--- a/dev-tools/scripts/addVersion.py
+++ b/dev-tools/scripts/addVersion.py
@@ -46,7 +46,7 @@ def update_changes(filename, new_version, init_changes, headers):
 def update_solrversion_class(new_version):
   filename = 'solr/core/src/java/org/apache/solr/util/SolrVersion.java'
   print('  changing version to %s...' % new_version.dot, end='', flush=True)
-  constant_prefix = 'private static final String LATEST_STRING = "(.*?)"'
+  constant_prefix = 'public static final String LATEST_STRING = "(.*?)"'
   matcher = re.compile(constant_prefix)
 
   def edit(buffer, match, line):