mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #1441] manifest: exclude a manifest spelled with another case (MANIFEST-WALK-CASE-EXCLUDE) #1471
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#1471
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/1441
Author: @Dashhhhhhhh
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/manifest-walk-case-exclude📝 Commits (1)
21227admanifest: exclude a manifest spelled with another case.📊 Changes
2 files changed (+63 additions, -15 deletions)
View changed files
📝
tests/test_manifest.py(+43 -0)📝
tools/manifest.py(+20 -15)📄 Description
Claimed in the coordination issue as: MANIFEST-WALK-CASE-EXCLUDE
What and why
tools/manifest.pywalk()decided the manifest was outside the game folder by comparingos.path.normcase(os.path.realpath()). That keeps the case you typed on macOS. A folder created asGameand--out game/MANIFEST.jsonare one file on APFS, so the nextcreatetreated the manifest as an input and refused to replace it, andverifylisted it asNEWand then printedOK.The scan now compares
report_paths.path_key, which folds case on a volume that ignores it. Recreating a real manifest under the other spelling works. A hashed file under the other spelling is still refused, and a hard link to a hashed file is still refused.manifest_verifier.pyhas the same exclude key; pull requests #344 and #899 already edit that file, so this change leaves it alone.Tested
python -I tests/test_manifest.py(42 tests) andpython -I tests/test_report_paths.py(22 tests), on macOS APFS. The new tests excludePKG/Manifest.jsonfrom a folder created aspkg, recreate that manifest, and refusePKG/ROOT.DAT. No game files.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md(not a translator change).Made with Cursor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.