From c838900d9c741f3612809a6dc4ab3037de29b56a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 Jan 2014 08:46:20 +0530 Subject: [PATCH] Fix #1269592 [Edit Book: New unreleased Manifest missing files test is buggy](https://bugs.launchpad.net/calibre/+bug/1269592) --- src/calibre/ebooks/oeb/polish/check/opf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/check/opf.py b/src/calibre/ebooks/oeb/polish/check/opf.py index 1ebcbfaa00..4da38e8006 100644 --- a/src/calibre/ebooks/oeb/polish/check/opf.py +++ b/src/calibre/ebooks/oeb/polish/check/opf.py @@ -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: