mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-14 22:57:37 +03:00
show progress while compressing release tarballs
This commit is contained in:
parent
55b53bcac6
commit
03fe928e3f
@ -220,7 +220,7 @@ def create_tarfile(env, compression_level='9'):
|
|||||||
print('Compressing archive...')
|
print('Compressing archive...')
|
||||||
ans = f'{dist.rpartition(".")[0]}.txz'
|
ans = f'{dist.rpartition(".")[0]}.txz'
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
subprocess.check_call(['xz', '--threads=0', '-f', f'-{compression_level}', dist])
|
subprocess.check_call(['xz', '--verbose', '--threads=0', '-f', f'-{compression_level}', dist])
|
||||||
secs = time.time() - start_time
|
secs = time.time() - start_time
|
||||||
print('Compressed in {} minutes {} seconds'.format(secs // 60, secs % 60))
|
print('Compressed in {} minutes {} seconds'.format(secs // 60, secs % 60))
|
||||||
os.rename(f'{dist}.xz', ans)
|
os.rename(f'{dist}.xz', ans)
|
||||||
|
Loading…
Reference in New Issue
Block a user