(filename, matcher, new_version)
| 70 | update_solrconfig(os.path.join(root, f), matcher, new_version) |
| 71 | |
| 72 | def 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 | |
| 86 | def check_solr_version_class_tests(): |
| 87 | print(' checking solr version tests...', end='', flush=True) |
no test coverage detected
searching dependent graphs…