Repository navigation
Conversation
|
I pushed a follow-up commit that restores the stubbed modules after the new The original failing tests now pass locally in the same xdist worker. |
|
This also fixes #1513. I see the same bug on v4.0.6, and the line is unchanged in v4.0.8. The conflict with main is only in Would you like to rebase? If you'd rather not, I can open a pull request with just the checksum part on top of current main. |
|
I opened #1667 with just the checksum fix and its test on top of current main, so that part can merge on its own. It follows your change here and credits this PR. |
Summary
metadata.db, not the split book-files rootconfig.get_book_path()calibredb check_libraryandrestore_databasewith the book-files root plusCALIBRE_OVERRIDE_DATABASE_PATHin split-library modeProblem
When Separate Book Files from Library is enabled, CWA keeps
metadata.dbinconfig_calibre_dirand stores book files inconfig_calibre_split_dir. A few workflows still treatedconfig_calibre_dirand the book-files root as the same directory. This caused checksum generation to open a non-existent database under the books directory, duplicate resolution to look for backup sources under the database directory, and Calibre database check/restore commands to receive the wrong library context.Tests
Additional checks:
git diff --checkcompileallfor all changed Python filesE4,E7,E9,Fchecks for the new helper and its tests