You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2016/06/27 16:58:09 UTC

[6/6] lucene-solr:master: Simplify backcompat index file name creation

Simplify backcompat index file name creation


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/1e182d81
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/1e182d81
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/1e182d81

Branch: refs/heads/master
Commit: 1e182d81db140ad4d8db86fb7a49a97476c779e4
Parents: 36183ca
Author: Steve Rowe <sa...@apache.org>
Authored: Mon Jun 27 12:56:17 2016 -0400
Committer: Steve Rowe <sa...@apache.org>
Committed: Mon Jun 27 12:57:40 2016 -0400

----------------------------------------------------------------------
 dev-tools/scripts/addBackcompatIndexes.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/1e182d81/dev-tools/scripts/addBackcompatIndexes.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/addBackcompatIndexes.py b/dev-tools/scripts/addBackcompatIndexes.py
index 8a8b5b2..543fad6 100644
--- a/dev-tools/scripts/addBackcompatIndexes.py
+++ b/dev-tools/scripts/addBackcompatIndexes.py
@@ -36,10 +36,7 @@ def create_and_add_index(source, indextype, index_version, current_version, temp
   else:
     dirname = indextype
   prefix = 'index' if current_version.is_back_compat_with(index_version) else 'unsupported'
-  filename = {
-    'cfs': '%s.%s-cfs.zip',
-    'nocfs': '%s.%s-nocfs.zip'
-  }[indextype] % (prefix, index_version)
+  filename = '%s.%s-%s.zip' % (prefix, index_version, indextype)
   print('  creating %s...' % filename, end='', flush=True)
   module = 'backward-codecs'
   index_dir = os.path.join('lucene', module, 'src/test/org/apache/lucene/index')