[PR #1441] manifest: exclude a manifest spelled with another case (MANIFEST-WALK-CASE-EXCLUDE) #1471

Open
opened 2026-11-26 20:21:22 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 21227ad manifest: 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.py walk() decided the manifest was outside the game folder by comparing os.path.normcase(os.path.realpath()). That keeps the case you typed on macOS. A folder created as Game and --out game/MANIFEST.json are one file on APFS, so the next create treated the manifest as an input and refused to replace it, and verify listed it as NEW and then printed OK.

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.py has 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) and python -I tests/test_report_paths.py (22 tests), on macOS APFS. The new tests exclude PKG/Manifest.json from a folder created as pkg, recreate that manifest, and refuse PKG/ROOT.DAT. No game files.

GPUs tested: n/a

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • A new translator rule is in the contract table of 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1441 **Author:** [@Dashhhhhhhh](https://github.com/Dashhhhhhhh) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/manifest-walk-case-exclude` --- ### 📝 Commits (1) - [`21227ad`](https://github.com/ubiquitarianism/leonida/commit/21227adbd6b1f9974d39534a14d86e6c2bbebe79) manifest: exclude a manifest spelled with another case. ### 📊 Changes **2 files changed** (+63 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_manifest.py` (+43 -0) 📝 `tools/manifest.py` (+20 -15) </details> ### 📄 Description Claimed in the coordination issue as: MANIFEST-WALK-CASE-EXCLUDE ### What and why `tools/manifest.py` `walk()` decided the manifest was outside the game folder by comparing `os.path.normcase(os.path.realpath())`. That keeps the case you typed on macOS. A folder created as `Game` and `--out game/MANIFEST.json` are one file on APFS, so the next `create` treated the manifest as an input and refused to replace it, and `verify` listed it as `NEW` and then printed `OK`. 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.py` has 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) and `python -I tests/test_report_paths.py` (22 tests), on macOS APFS. The new tests exclude `PKG/Manifest.json` from a folder created as `pkg`, recreate that manifest, and refuse `PKG/ROOT.DAT`. No game files. GPUs tested: n/a AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [ ] A new translator rule is in the contract table of `docs/design.md` (not a translator change). Made with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1471
No description provided.