[PR #1430] bink_index: ask report_paths for the report-path guard (BINK-INDEX-SHARED-REPORT-PATH) #1460

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

📋 Pull Request Information

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

Base: main ← Head: fix/bink-index-report-path


📝 Commits (1)

  • fb43ae7 bink_index: treat case-only report paths as one file.

📊 Changes

2 files changed (+22 additions, -10 deletions)

View changed files

📝 tests/test_bink_index.py (+21 -0)
📝 tools/bink_index.py (+1 -10)

📄 Description

Claimed in the coordination issue as: BINK-INDEX-SHARED-REPORT-PATH

What and why

tools/bink_index.py compared report paths with os.path.normcase. That folds case on Windows and leaves it alone on macOS, and os.path.samefile only answers when both paths already exist. A carve folder named Movies and --out movies/index.json are one file on APFS, and the manifest does not exist yet, so the check let --out write <target>/index.json.

The tool now uses tools/report_paths.py. bink_names.py calls the same function, so it gets the same answer.

Tested

python -I tests/test_bink_index.py (35 tests) and python -I tests/test_bink_names.py (36 tests), on macOS APFS. The new test refuses movies/index.json for a folder created as Movies. 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/1430 **Author:** [@Dashhhhhhhh](https://github.com/Dashhhhhhhh) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/bink-index-report-path` --- ### 📝 Commits (1) - [`fb43ae7`](https://github.com/ubiquitarianism/leonida/commit/fb43ae7e5a7685f11acd2076e5228033b6e359ec) bink_index: treat case-only report paths as one file. ### 📊 Changes **2 files changed** (+22 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_bink_index.py` (+21 -0) 📝 `tools/bink_index.py` (+1 -10) </details> ### 📄 Description Claimed in the coordination issue as: BINK-INDEX-SHARED-REPORT-PATH ### What and why `tools/bink_index.py` compared report paths with `os.path.normcase`. That folds case on Windows and leaves it alone on macOS, and `os.path.samefile` only answers when both paths already exist. A carve folder named `Movies` and `--out movies/index.json` are one file on APFS, and the manifest does not exist yet, so the check let `--out` write `<target>/index.json`. The tool now uses `tools/report_paths.py`. `bink_names.py` calls the same function, so it gets the same answer. ### Tested `python -I tests/test_bink_index.py` (35 tests) and `python -I tests/test_bink_names.py` (36 tests), on macOS APFS. The new test refuses `movies/index.json` for a folder created as `Movies`. 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#1460
No description provided.