mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1215] odrp_7a: ask report_paths for the report-path guard (ODRP-7A-SHARED-REPORT-PATH) #1246
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#1246
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/1215
Author: @breachato
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:odrp-7a-shared-report-path📝 Commits (1)
376346eodrp_7a: ask report_paths for the report-path guard📊 Changes
1 file changed (+4 additions, -12 deletions)
View changed files
📝
tools/odrp_7a.py(+4 -12)📄 Description
Claimed in the coordination issue as: ODRP-7A-SHARED-REPORT-PATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143541842)
Depends on: none
Fixes: none
What and why
tools/odrp_7a.pyderived report-path equality itself in_same_path(:1182, realpath + normcase + samefile)and asked it at its three output guards: the source against
out(:1221), the carve folder's manifest(
:1228) and each carved stream (:1233). That is the answertools/report_paths.same_report_pathexists togive, and CONTRIBUTING.md asks a report writer to call it rather than derive it again.
The private copy also missed that helper's folding-volume probe, so on a Linux mount that ignores case (vfat,
exFAT, CIFS)
--out R.jsonand--out r.jsonpassed as two report paths and the second replaced the first,including when the first was the archive being scanned.
The duplicated logic goes (4 insertions, 12 deletions). The tool already puts its own folder on
sys.pathforfile_mode, so the import is one line; no test calls_same_path, so the name goes with the duplication.No behaviour change on Windows, macOS or a case-sensitive Linux filesystem.
Tested
tests/test_odrp_7a.py: 16 passed, 6 subtests passed.python -I tools/odrp_7a.py --help: prints its usage (the import works under-I).python -m compileall -q tools/odrp_7a.py: clean.machine is NTFS, where
normcasealready folds case.tests/test_report_paths.pycovers the helper's ownfolding-volume answer.
GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.