Fix #1269592 [Edit Book: New unreleased Manifest missing files test is buggy](https://bugs.launchpad.net/calibre/+bug/1269592)

This commit is contained in:
Kovid Goyal 2014-01-16 08:46:20 +05:30
parent 15c2b493fa
commit c838900d9c

View File

@ -112,7 +112,7 @@ def check_opf(container):
seen, dups = {}, {}
for item in container.opf_xpath('/opf:package/opf:manifest/opf:item[@href]'):
href = item.get('href')
if not container.exists(href):
if not container.exists(container.href_to_name(href, container.opf_name)):
errors.append(MissingHref(container.opf_name, href, item.sourceline))
if href in seen:
if href not in dups: