(new_version)
| 56 | raise x |
| 57 | |
| 58 | def update_example_solrconfigs(new_version): |
| 59 | print(' updating example solrconfig.xml files with lucene version %s' % new_version) |
| 60 | matcher = re.compile('<luceneMatchVersion>(.*?)</luceneMatchVersion>') |
| 61 | |
| 62 | paths = ['solr/server/solr/configsets', 'solr/example'] |
| 63 | for path in paths: |
| 64 | print(" Patching configset folder %s" % path) |
| 65 | if not os.path.isdir(path): |
| 66 | raise RuntimeError("Can't locate configset dir (layout change?) : " + path) |
| 67 | for root,dirs,files in os.walk(path, onerror=onerror): |
| 68 | for f in files: |
| 69 | if f == 'solrconfig.xml': |
| 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) |
no test coverage detected
searching dependent graphs…