lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject [1/6] lucene-solr:branch_5_5: Simplify backcompat index file name creation
Date Mon, 27 Jun 2016 16:58:04 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_5_5 33ef9eb08 -> 4ead2c2bd
  refs/heads/branch_5x 29f559990 -> 67b31c82a
  refs/heads/branch_6_0 5dce97fd5 -> 78189c226
  refs/heads/branch_6_1 8504e02b6 -> f6b0e1968
  refs/heads/branch_6x eb0714363 -> ea344f9c8
  refs/heads/master 36183cad8 -> 1e182d81d


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/4ead2c2b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/4ead2c2b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/4ead2c2b

Branch: refs/heads/branch_5_5
Commit: 4ead2c2bd24af062f6013fdc0b606d4019c7e7b0
Parents: 33ef9eb
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:17 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/4ead2c2b/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