mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
calibredb check_library: Vacuum database when runnning the check
This commit is contained in:
parent
84f7464be5
commit
3d63a57ff4
@ -1369,6 +1369,8 @@ def command_check_library(args, dbpath):
|
|||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
|
||||||
db = LibraryDatabase(dbpath)
|
db = LibraryDatabase(dbpath)
|
||||||
|
print _('Vacuuming database...')
|
||||||
|
db.new_api.vacuum()
|
||||||
checker = CheckLibrary(dbpath, db)
|
checker = CheckLibrary(dbpath, db)
|
||||||
checker.scan_library(names, exts)
|
checker.scan_library(names, exts)
|
||||||
for check in checks:
|
for check in checks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user