swap version in is_back_compat_with calls

This commit is contained in:
Mike McCandless 2016-08-20 04:05:00 -04:00
parent 326db813fa
commit e9f3684967
1 changed files with 2 additions and 2 deletions

View File

@ -217,7 +217,7 @@ def main():
update_changes('lucene/CHANGES.txt', c.version)
update_changes('solr/CHANGES.txt', c.version, get_solr_init_changes())
if current_version.is_back_compat_with(c.version):
if c.version.is_back_compat_with(current_version):
add_constant(c.version, not c.is_latest_version)
else:
print('\nNot adding constant for version %s because it is no longer supported' % c.version)
@ -232,7 +232,7 @@ def main():
print('\nTODO: ')
print(' - Move backcompat oldIndexes to unsupportedIndexes in TestBackwardsCompatibility')
print(' - Update IndexFormatTooOldException throw cases')
elif current_version.is_back_compat_with(c.version):
elif c.version.is_back_compat_with(current_version):
print('\nTesting changes')
check_lucene_version_tests()
check_solr_version_tests()