MCPcopy Create free account
hub / github.com/apache/solr / update_solrconfig

Function update_solrconfig

dev-tools/scripts/addVersion.py:72–84  ·  view source on GitHub ↗
(filename, matcher, new_version)

Source from the content-addressed store, hash-verified

70 update_solrconfig(os.path.join(root, f), matcher, new_version)
71
72def update_solrconfig(filename, matcher, new_version):
73 print(' %s...' % filename, end='', flush=True)
74 def edit(buffer, match, line):
75 if new_version in line:
76 return None
77 match = matcher.search(line)
78 if match is None:
79 return False
80 buffer.append(line.replace(match.group(1), new_version))
81 return True
82
83 changed = update_file(filename, matcher, edit)
84 print('done' if changed else 'uptodate')
85
86def check_solr_version_class_tests():
87 print(' checking solr version tests...', end='', flush=True)

Callers 1

Calls 1

update_fileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…