mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:20:51 +01:00
[PR #723] [MERGED] OLD-7895: restore old upstream PR 7895 - make_game: an incomplete copy is named as a partial match of its version, with what is missing #760
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#760
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/723
Author: @aslan2142
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142
Base:
main← Head:build2835-partial-version-match📝 Commits (3)
bd9a092make_game: an incomplete copy is named as a partial match of its version, with what is missing (BUILD-2835)6e673f5make_game: a file whose metadata can't be read is not reported as missing (BUILD-2835 review)6e15812make_game: a probe file there with another size keeps the unsupported-version message (BUILD-2835 review)📊 Changes
2 files changed (+193 additions, -1 deletions)
View changed files
📝
make_game.py(+65 -1)📝
tests/test_make_game_preflight.py(+128 -0)📄 Description
Claimed in the coordination issue as: OLD-7895 https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7132079608
Restoration of my original pull request, old upstream PR 7895 in
ItsNotRexed/Leonida, which was closed unmerged when that repository went private on 2026-11-23 (old numbers link nowhere now). Rebased onto main at51f3160923; the three commits cherry-picked cleanly and nothing needed adapting (the case-sensitive probe hint that landed in the meantime is unchanged).What and why
load_version()only looks at the three probe files (MicrosoftGame.Config,Catalog000.bin,appdata0.rpf). So a copy whose download stopped before one of them got the same message as another game: "This doesn't look like a supported version of the game".FileNotFoundErrorandNotADirectoryErrorcount as missing, as inprobe_mismatches(). A file that raises anotherOSError(for examplePermissionError) is listed as "cannot read", with advice to make it readable. In that case the message doesn't say "Finish the download".Tested
Linux, Python 3.14.10, CPU only. Synthetic manifests and empty or truncated files only, no game files.
python -I tests/test_make_game_preflight.py:PartialVersionMatchTesthas 9 cases:python -m compileall -q make_game.py tools tests,python -I make_game.py --help,git diff --checkandpython -I scripts/check_no_game_data.py make_game.py tests/test_make_game_preflight.pyall pass.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)AI-assisted (Claude Code, Claude Opus 5.5).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.