fix: keep the digest cache beside the scanned tree

The cache path and .gitignore were read from the working directory: a
scan of a copy replaced the repository's cache with the copy's entries,
keyed bios/... like the real ones, and the next run rehashed everything.
Both now come from the tree holding bios/, and kept release assets are
restored under it.
This commit is contained in:
Abdessamad Derraz committed 2026-11-22 00:58:05 +01:00
1 parent 936e9ceed9
commit 940893d7d4
6 files changed
+70 -24

No files matched your search

+2 -1
View File
@@ -4,7 +4,8 @@
Usage:
python scripts/generate_db.py [--force] [--bios-dir DIR] [--output FILE]
Supports incremental mode via .cache/db_cache.json (mtime-based).
Supports incremental mode via .cache/db_cache.json beside the scanned
tree (mtime-based).
Use --force to rehash all files.
"""