This commit is contained in:
Kovid Goyal 2014-06-30 09:38:39 +05:30
parent db449ebb71
commit 90e9b071d8

View File

@ -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)))