diff options
| author | djrolfes <djrolfes@users.noreply.github.com> | 2026-11-24 14:50:22 +0100 |
|---|---|---|
| committer | djrolfes <rolfes2dominik@gmail.com> | 2026-11-25 20:38:26 +0100 |
| commit | 692b65cb10b7474f469ececbbd820af6a9081f2d (patch) | |
| tree | 3577a48b1410c1006e61e1d429b28d3ea6da849d /scripts/launcher_python.sh | |
| parent | e18b59a5b77a8400f66b71b5f12d713bb12c63e0 (diff) | |
story_index: make the staging file deletable when a replace fails
The staged report carries the destination's bits, so on Windows a failed
os.replace over a read-only report leaves a read-only stage the TemporaryDirectory
cleanup refuses to delete, masking the real error with a cleanup failure. The
cleanup now makes the staged file writable before deleting and lets one delete
failure go, so the caller reports the replace; a successful publish is
unchanged, and the prior report stays byte-for-byte intact on failure. Same
shape as navmesh_index's and bvh_index's staging cleanup.
Regression test in the style of the failed-replace tests there: mocks the
replace as failing over a 0o444 report and fails against the old code on the
made-deletable assertion. Synthetic archives only; no game data.
Claimed in the coordination issue as STORY-INDEX-STAGE-CLEANUP (issue #14).
AI-assisted.
Diffstat (limited to 'scripts/launcher_python.sh')
0 files changed, 0 insertions, 0 deletions