From e2109dbe9eea78ed5b9c4e71870ca7dbadd410ee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 19 Jun 2012 22:40:27 +0530 Subject: [PATCH] Ignore the metadata.db prefs backup file during Check Library --- src/calibre/library/check_library.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/check_library.py b/src/calibre/library/check_library.py index 924fedf7ed..79c52cfe4e 100644 --- a/src/calibre/library/check_library.py +++ b/src/calibre/library/check_library.py @@ -93,7 +93,8 @@ class CheckLibrary(object): lib = self.src_library_path for auth_dir in os.listdir(lib): - if self.ignore_name(auth_dir) or auth_dir == 'metadata.db': + if self.ignore_name(auth_dir) or auth_dir in {'metadata.db', + 'metadata_db_prefs_backup.json'}: continue auth_path = os.path.join(lib, auth_dir) # First check: author must be a directory