LUCENE-10174 Speed up 'pushLocal' by using uncompressed tar (#401)

This commit is contained in:
Jan Høydahl 2021-10-20 14:41:24 +02:00 committed by GitHub
parent f13a400b9a
commit 5b8f0a5eb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -219,15 +219,15 @@ def pushLocal(version, root, rev, rcNum, localDir):
print(' Lucene') print(' Lucene')
lucene_dist_dir = '%s/lucene/distribution/build/release' % root lucene_dist_dir = '%s/lucene/distribution/build/release' % root
os.chdir(lucene_dist_dir) os.chdir(lucene_dist_dir)
print(' zip...') print(' archive...')
if os.path.exists('lucene.tar.bz2'): if os.path.exists('lucene.tar'):
os.remove('lucene.tar.bz2') os.remove('lucene.tar')
run('tar cjf lucene.tar.bz2 *') run('tar cf lucene.tar *')
os.chdir('%s/%s/lucene' % (localDir, dir)) os.chdir('%s/%s/lucene' % (localDir, dir))
print(' unzip...') print(' extract...')
run('tar xjf "%s/lucene.tar.bz2"' % lucene_dist_dir) run('tar xf "%s/lucene.tar"' % lucene_dist_dir)
os.remove('%s/lucene.tar.bz2' % lucene_dist_dir) os.remove('%s/lucene.tar' % lucene_dist_dir)
os.chdir('..') os.chdir('..')
print(' chmod...') print(' chmod...')