mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #466] [MERGED] world_drawable_verify: deduplicate input manifests by file identity #517
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#517
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/466
Author: @EdenBendheim
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:ubiq/world-drawable-verify-dedup📝 Commits (1)
72e81f7world_drawable_verify: deduplicate manifests by file identity📊 Changes
2 files changed (+116 additions, -3 deletions)
View changed files
📝
tests/test_world_drawable_verify.py(+95 -0)📝
tools/world_drawable_verify.py(+21 -3)📄 Description
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123318168
What changed
tools/world_drawable_verify.py: Deduplicate input manifests in first-seen order usingos.fstat()on the opened file handle (closing stat-vs-open races), requiring bothst_devandst_inoto be non-zero and falling back toos.path.normcase(os.path.realpath(path))when either is unavailable. Preserves upstream source-archive alias checks and keeps independently written identical-content manifests counted separately.tests/test_world_drawable_verify.py: Synthetic tests covering repeated/relative paths, hard links, symlinks, independent identical-content files, zerost_dev/st_inoandnormcasefallbacks, and input-order errors.Testing & Disclosure
gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).ubiquitarianism/leonidamain(8f481cf16):test_world_drawable_verify*.py(16/16),compileall,check_no_game_data.py, LF check — all passed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.