mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1227] rbf0_index: ask report_paths for the report-path guard (RBF0-INDEX-SHARED-REPORT-PATH) #1259
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#1259
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/1227
Author: @breachato
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:rbf0-index-shared-report-path📝 Commits (1)
7d5fb85rbf0_index: ask report_paths for the report-path guard📊 Changes
1 file changed (+4 additions, -13 deletions)
View changed files
📝
tools/rbf0_index.py(+4 -13)📄 Description
Claimed in the coordination issue as: RBF0-INDEX-SHARED-REPORT-PATH (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143809247)
Depends on: none
Fixes: none
What and why
tools/rbf0_index.pyderived report-path equality itself insame_output_path(:542, realpath + normcase +samefile) and asked it at its three output guards: the source against
out(:562), the carve folder'sindex.jsonagainstout(:577) and each carved stream againstout(:578). That is the answertools/report_paths.pyexists to give, and CONTRIBUTING.md asks a report writer to callsame_report_path(a, b)rather than derive it again (the same one-topic refactor as #1162 and #1214-#1216).
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 or a stream being scanned.
The duplicated logic goes. The tool already puts its own folder on
sys.pathforfile_mode, so the import isone line; no test calls
same_output_path, so the name goes with the duplication. The staging and permissionpath claimed by RBF0-INDEX-STAGE-CLEANUP (#791) is not touched. No behaviour change on Windows, macOS or a
case-sensitive Linux filesystem.
Tested
tests/test_rbf0_index.pyandtests/test_rbf0_index_short_continuation.py: 30 passed, 4 subtests passed.python -I tools/rbf0_index.py --help: prints its usage (the import works under-I).python -m compileall -q tools/rbf0_index.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.