This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new bb72be9 Allow compatibility flags to be omitted during rsync
bb72be9 is described below
commit bb72be94fee9b433a39786e29000c829acdc174f
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Jun 17 16:22:17 2025 +0100
Allow compatibility flags to be omitted during rsync
---
atr/ssh.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/atr/ssh.py b/atr/ssh.py
index c9853ac..61ede01 100644
--- a/atr/ssh.py
+++ b/atr/ssh.py
@@ -222,11 +222,11 @@ def _step_02_command_simple_validate(argv: list[str]) ->
tuple[str | None, int,
# Validate the options argument strictly
options = argv[option_index]
- if "e." not in options:
- return "The options argument (after --sender) must contain 'e.'", -1,
True
- # The options after -e. are compatibility flags and can be ignored
- if options.split("e.", 1)[0] != "-vlogDtpr":
+ if ("e." in options) and (options.split("e.", 1)[0] != "-vlogDtpr"):
+ # The options after -e. are compatibility flags and can be ignored
return "The options argument (after --sender) must be
'-vlogDtpre.[compatibility flags]'", -1, True
+ elif options != "-vlogDtpr":
+ return "The options argument (after --sender) must be '-vlogDtpr'",
-1, True
####################################################
### Calls _step_03_validate_rsync_args_structure ###
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]