mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 09:03:07 +02:00
Improve compression of source tarball
This commit is contained in:
parent
ac847b55a5
commit
63e8f0de50
1 changed files with 6 additions and 2 deletions
|
|
@ -305,8 +305,12 @@ def run(self, opts):
|
|||
shutil.copytree(self.j(tbase, 'manual'), self.j(tdir, 'translations', 'manual'))
|
||||
|
||||
self.info('\tCreating tarfile...')
|
||||
subprocess.check_call(['tar', '-cJf', self.a(self.DEST),
|
||||
'calibre'], cwd=self.d(tdir))
|
||||
dest = self.DEST.rpartition('.')[0]
|
||||
subprocess.check_call(['tar', '-cf', self.a(dest), 'calibre'], cwd=self.d(tdir))
|
||||
self.info('\tCompressing tarfile...')
|
||||
if os.path.exists(self.a(self.DEST)):
|
||||
os.remove(self.a(self.DEST))
|
||||
subprocess.check_call(['xz', '-9', self.a(dest)])
|
||||
|
||||
def clean(self):
|
||||
if os.path.exists(self.DEST):
|
||||
|
|
|
|||
Loading…
Reference in a new issue