mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
db449ebb71
commit
90e9b071d8
@ -262,9 +262,12 @@ class LinuxFreeze(Command):
|
|||||||
finally:
|
finally:
|
||||||
os.chdir(cwd)
|
os.chdir(cwd)
|
||||||
self.info('Compressing archive...')
|
self.info('Compressing archive...')
|
||||||
subprocess.check_call(['xz', '-f', '-9', dist])
|
|
||||||
ans = dist.rpartition('.')[0] + '.txz'
|
ans = dist.rpartition('.')[0] + '.txz'
|
||||||
os.rename(dist + '.xz', ans)
|
if False:
|
||||||
|
os.rename(dist, ans)
|
||||||
|
else:
|
||||||
|
subprocess.check_call(['xz', '-f', '-9', dist])
|
||||||
|
os.rename(dist + '.xz', ans)
|
||||||
self.info('Archive %s created: %.2f MB'%(
|
self.info('Archive %s created: %.2f MB'%(
|
||||||
os.path.basename(ans), os.stat(ans).st_size/(1024.**2)))
|
os.path.basename(ans), os.stat(ans).st_size/(1024.**2)))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user