-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added possibility to specify rsync binary using option rsync_binary #20
base: master
Are you sure you want to change the base?
Conversation
Kudos, SonarCloud Quality Gate passed! |
@@ -38,7 +40,7 @@ def get_rsync_command(source: str, | |||
if options is None: | |||
options = [] | |||
|
|||
return ['rsync', | |||
return [rsync_cmd, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the argument is called rsync_binary
, but here, it is rsync_cmd
rsync_args = inspect.getfullargspec(get_rsync_command)[0] | ||
subp_kwargs = {} | ||
for k, v in kwargs.items(): | ||
if k not in rsync_args: | ||
subp_kwargs[k] = v |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe to avoid risking get_rsync_command
and subprocess.run
arguments collision, we could add a separate argument for sysrsync.run
to pass those args to subprocess.run
?
Sorry again. It's been a while (for some PRs quite longer than that), but I plan to give this project some attention (finally). Expect some updates this month. |
Useful if you need to fix rsync to a specific version and dont want to require each users to modify their path.