mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 11:36:14 +01:00
Merge from custcol trunk
This commit is contained in:
commit
d5bfabdf29
2 changed files with 5 additions and 5 deletions
|
|
@ -296,8 +296,8 @@ def is_case_sensitive(self, path):
|
|||
return self._is_case_sensitive
|
||||
if not path or not os.path.exists(path):
|
||||
return islinux or isfreebsd
|
||||
self._is_case_sensitive = os.path.exists(path.lower()) \
|
||||
and os.path.exists(path.upper())
|
||||
self._is_case_sensitive = not (os.path.exists(path.lower()) \
|
||||
and os.path.exists(path.upper()))
|
||||
return self._is_case_sensitive
|
||||
|
||||
def create_oebbook(self, htmlpath, basedir, opts, log, mi):
|
||||
|
|
|
|||
|
|
@ -133,11 +133,11 @@ def get_cover(opf, opf_path, stream, reader=None):
|
|||
stream.seek(0)
|
||||
zf = ZipFile(stream)
|
||||
if raster_cover:
|
||||
if reader is not None and \
|
||||
reader.encryption_meta.is_encrypted(raster_cover):
|
||||
return
|
||||
base = posixpath.dirname(opf_path)
|
||||
cpath = posixpath.normpath(posixpath.join(base, raster_cover))
|
||||
if reader is not None and \
|
||||
reader.encryption_meta.is_encrypted(cpath):
|
||||
return
|
||||
try:
|
||||
member = zf.getinfo(cpath)
|
||||
except:
|
||||
|
|
|
|||
Loading…
Reference in a new issue