mirror of
https://github.com/Abdess/retrobios.git
synced 2026-04-20 13:57:46 +00:00
Single source of truth for file resolution logic: - common.py:resolve_local_file() = 80 lines (core resolution) - verify.py:resolve_to_local_path() = 3 lines (thin wrapper) - generate_pack.py:resolve_file() = 20 lines (adds storage tiers + release assets) Before: 103 + 73 = 176 lines of duplicated logic with subtle divergences After: 80 lines shared + 23 lines wrappers = 103 lines total (-41%) Resolution chain: SHA1 -> MD5 multi-hash -> truncated MD5 -> zipped_file index -> name existence -> name composite -> name fallback -> (pack only) release assets |
||
|---|---|---|
| .. | ||
| scraper | ||
| auto_fetch.py | ||
| common.py | ||
| cross_reference.py | ||
| dedup.py | ||
| download.py | ||
| download.sh | ||
| generate_db.py | ||
| generate_pack.py | ||
| generate_readme.py | ||
| list_platforms.py | ||
| migrate.py | ||
| validate_pr.py | ||
| verify.py | ||