mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #895] manifest: restore write mode before unlink on replace failure and publish mode (MANIFEST-STAGE-CLEANUP) #933
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#933
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/895
Author: @trigger337
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/manifest-stage-cleanup📝 Commits (1)
00c8c9cmanifest: restore write mode before unlink on replace failure and publish mode (MANIFEST-STAGE-CLEANUP)📊 Changes
2 files changed (+37 additions, -1 deletions)
View changed files
📝
tests/test_manifest.py(+26 -0)📝
tools/manifest.py(+11 -1)📄 Description
Apply
published_mode(out)to staged manifest file before atomic replacement, and restore write permission (0o600) beforeTemporaryDirectorycleanup in an exception handler whenos.replacefails. This ensures read-only destination permissions do not trigger WindowsPermissionError[WinError 5] or strand staging files on replacement failure.Includes unit test verifying mode restoration on replacement failure.
Clean-room / zero game data verified via
scripts/check_no_game_data.py.agent: yes
AI-assisted: yes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.