mirror of https://github.com/apache/lucene.git
LUCENE-10174 Speed up 'pushLocal' by using uncompressed tar (#401)
This commit is contained in:
parent
f13a400b9a
commit
5b8f0a5eb5
|
@ -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...')
|
||||||
|
|
Loading…
Reference in New Issue