This commit is contained in:
Kovid Goyal 2010-06-07 12:09:53 -06:00
parent 2727f351d3
commit aa0c0ada63
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ def main():
dev.touch(args[0])
elif command == 'test_file':
parser = OptionParser(usage=("usage: %prog test_file path\n"
'Open device, copy file psecified by path to device and '
'Open device, copy file specified by path to device and '
'then eject device.'))
options, args = parser.parse_args(args)
if len(args) != 1:

View File

@ -290,7 +290,7 @@ class XMLCache(object):
lpath_map = self.build_lpath_map(root)
for book in bl:
record = lpath_map[book.lpath]
record = lpath_map.get(book.lpath, None)
if record is not None:
title = record.get('title', None)
if title is not None and title != book.title: