[PR #1453] world_drawable_verify: one archive under another case is the same source (WORLD-DRAWABLE-VERIFY-CASE-ARCHIVE) #1484

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1453
Author: @Dashhhhhhhh
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: fix/world-drawable-verify-case-archive


📝 Commits (1)

  • 8dd9eb7 world_drawable_verify: treat another case of one archive as the same source.

📊 Changes

3 files changed (+27 additions, -2 deletions)

View changed files

📝 tests/test_world_drawable_verify.py (+12 -1)
📝 tests/test_world_drawable_verify_archive_aliases.py (+11 -0)
📝 tools/world_drawable_verify.py (+4 -1)

📄 Description

Claimed in the coordination issue as: WORLD-DRAWABLE-VERIFY-CASE-ARCHIVE

What and why

tools/world_drawable_verify.py archive_path compared source archives with os.path.normcase(os.path.abspath()). On macOS that keeps the case you typed, and os.path.samefile cannot see a file that has not been created. Two reports of Game/missing.rpf and game/missing.rpf were rejected as different archives.

The key now uses report_paths.path_key. A hard link or symlink to an existing archive is still accepted, and a distinct file with the same bytes is still rejected.

Tested

python -I tests/test_world_drawable_verify_archive_aliases.py (7 tests) and python -I tests/test_world_drawable_verify.py (10 tests) on macOS APFS. The new test accepts two spellings of one archive that has not been created. 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/1453 **Author:** [@Dashhhhhhhh](https://github.com/Dashhhhhhhh) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/world-drawable-verify-case-archive` --- ### 📝 Commits (1) - [`8dd9eb7`](https://github.com/ubiquitarianism/leonida/commit/8dd9eb777c4b1c22d20e66c74ba94c7113da9fda) world_drawable_verify: treat another case of one archive as the same source. ### 📊 Changes **3 files changed** (+27 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_world_drawable_verify.py` (+12 -1) 📝 `tests/test_world_drawable_verify_archive_aliases.py` (+11 -0) 📝 `tools/world_drawable_verify.py` (+4 -1) </details> ### 📄 Description Claimed in the coordination issue as: WORLD-DRAWABLE-VERIFY-CASE-ARCHIVE ### What and why `tools/world_drawable_verify.py` `archive_path` compared source archives with `os.path.normcase(os.path.abspath())`. On macOS that keeps the case you typed, and `os.path.samefile` cannot see a file that has not been created. Two reports of `Game/missing.rpf` and `game/missing.rpf` were rejected as different archives. The key now uses `report_paths.path_key`. A hard link or symlink to an existing archive is still accepted, and a distinct file with the same bytes is still rejected. ### Tested `python -I tests/test_world_drawable_verify_archive_aliases.py` (7 tests) and `python -I tests/test_world_drawable_verify.py` (10 tests) on macOS APFS. The new test accepts two spellings of one archive that has not been created. 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#1484
No description provided.