lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject [5/6] lucene-solr:branch_6x: Simplify backcompat index file name creation
Date Mon, 27 Jun 2016 16:58:08 GMT
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/ea344f9c
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ea344f9c
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ea344f9c

Branch: refs/heads/branch_6x
Commit: ea344f9c8fe83201794c6ecf3976b0a96359783d
Parents: eb07143
Author: Steve Rowe <sarowe@apache.org>
Authored: Mon Jun 27 12:56:17 2016 -0400
Committer: Steve Rowe <sarowe@apache.org>
Committed: Mon Jun 27 12:57:28 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/ea344f9c/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')


Mime
View raw message