Skip to content

Commit

Permalink
Book polishing: Fix EPUB files with corrupted ZIP central directories…
Browse files Browse the repository at this point in the history
… not working and leaving behind detritus in the current working directory. Fixes #1360385 [Debris left when polish books fails](https://bugs.launchpad.net/calibre/+bug/1360385)
  • Loading branch information
kovidgoyal committed Aug 23, 2014
1 parent b657997 commit 683106f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/ebooks/oeb/polish/container.py
Expand Up @@ -927,7 +927,7 @@ def __init__(self, pathtoepub, log, clone_data=None, tdir=None):
' more forgiving ZIP parser')
from calibre.utils.localunzip import extractall
stream.seek(0)
extractall(stream)
extractall(stream, path=tdir)
try:
os.remove(join(tdir, 'mimetype'))
except EnvironmentError:
Expand Down

0 comments on commit 683106f

Please sign in to comment.