Skip to content

Fix --strip-components#3

Merged
cerisier merged 1 commit intomainfrom
strip
Feb 4, 2026
Merged

Fix --strip-components#3
cerisier merged 1 commit intomainfrom
strip

Conversation

@cerisier
Copy link
Copy Markdown
Member

@cerisier cerisier commented Feb 4, 2026

Fix --strip-components in --expand-full nested extraction.

Previously, stripping was applied to parent nested entries (Payload/Scripts) too early, which could skip nested unpack and produce near-empty output for N >= 1.

Now, nested extraction always runs, computes nested output path from the stripped parent path, and applies an adjusted nested strip depth (max(0, N - parent_components)).

Add regression coverage for --expand-full --strip-components 6 to ensure paths like usr/bin/cups-config are produced.

@cerisier cerisier merged commit f53b4e1 into main Feb 4, 2026
3 of 6 checks passed
@cerisier cerisier deleted the strip branch February 4, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant