mirror of https://github.com/apache/lucene.git
Simplify backcompat index file name creation
This commit is contained in:
parent
36183cad87
commit
1e182d81db
|
@ -36,10 +36,7 @@ def create_and_add_index(source, indextype, index_version, current_version, temp
|
||||||
else:
|
else:
|
||||||
dirname = indextype
|
dirname = indextype
|
||||||
prefix = 'index' if current_version.is_back_compat_with(index_version) else 'unsupported'
|
prefix = 'index' if current_version.is_back_compat_with(index_version) else 'unsupported'
|
||||||
filename = {
|
filename = '%s.%s-%s.zip' % (prefix, index_version, indextype)
|
||||||
'cfs': '%s.%s-cfs.zip',
|
|
||||||
'nocfs': '%s.%s-nocfs.zip'
|
|
||||||
}[indextype] % (prefix, index_version)
|
|
||||||
print(' creating %s...' % filename, end='', flush=True)
|
print(' creating %s...' % filename, end='', flush=True)
|
||||||
module = 'backward-codecs'
|
module = 'backward-codecs'
|
||||||
index_dir = os.path.join('lucene', module, 'src/test/org/apache/lucene/index')
|
index_dir = os.path.join('lucene', module, 'src/test/org/apache/lucene/index')
|
||||||
|
|
Loading…
Reference in New Issue