cmds.posix.CmdCopy: Don't copy(App.exec_context.path_filter) #175

Merged
Jan Lindemann merged 1 commit from jan/fix/20261109-cmds-posix-cmdcopy-don-t-copy-app-exec-context-path-filter into master 2026-11-09 22:25:30 +01:00 AGit
Owner

cmds.posix.CmdCopy: Don't copy(App.exec_context.path_filter)

The App's target exec context's path_filter gets passed to util.copy(). That might be a fine idea, but the semantics are too hard to understand at this point, so, if copy should be limited by a path filter, it should to be passed as a query string attached to the source- or target file context.

This commit enforces just that by dropping the default_exec_context argument to copy().

#### cmds.posix.CmdCopy: Don't copy(App.exec_context.path_filter) The App's target exec context's `path_filter` gets passed to `util.copy()`. That might be a fine idea, but the semantics are too hard to understand at this point, so, if copy should be limited by a path filter, it should to be passed as a query string attached to the source- or target file context. This commit enforces just that by dropping the `default_exec_context` argument to `copy()`.
cmds.posix.CmdCopy: Don't copy(App.exec_context.path_filter)
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m14s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m10s
CI / Packaging test (pull_request) Successful in 0s
7ca07b21fe
The App's target exec context's path_filter gets passed to util.copy().
That might be a fine idea, but the semantics are too hard to understand at
this point, so, if copy should be limited by a path filter, it should to be
passed as a query string attached to the source- or target file context.

This commit enforces just that by dropping the default_exec_context
argument to copy().

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
Signed-off-by: Jan Lindemann <jan@janware.com>
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-11-09 22:15:03 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
janware/jw-pkg!175
No description provided.