lucene-commits mailing list archives

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

Branch: refs/heads/branch_6_0
Commit: 78189c226bc3338695e86595a2b011a47c8cb479
Parents: 5dce97f
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:56:47 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/78189c22/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