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,8 +262,11 @@ class LinuxFreeze(Command):
|
||||
finally:
|
||||
os.chdir(cwd)
|
||||
self.info('Compressing archive...')
|
||||
subprocess.check_call(['xz', '-f', '-9', dist])
|
||||
ans = dist.rpartition('.')[0] + '.txz'
|
||||
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'%(
|
||||
os.path.basename(ans), os.stat(ans).st_size/(1024.**2)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user