no special case for rsync in core. handle implementation specific details in remote-copy script instead
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
21b85e410e
commit
5edf39f111
2 changed files with 19 additions and 7 deletions
|
|
@ -77,12 +77,7 @@ class Remote(object):
|
|||
self.log.debug("Remote transfer: %s -> %s", source, destination)
|
||||
self.rmdir(destination)
|
||||
command = self._copy.split()
|
||||
# support rsync by appending a "/" to the source if it's a directory
|
||||
if os.path.isdir(source):
|
||||
command.extend(["-r", source + "/", self.target_host + ":" + destination])
|
||||
else:
|
||||
command.extend(["-r", source, self.target_host + ":" + destination])
|
||||
|
||||
command.extend(["-r", source, self.target_host + ":" + destination])
|
||||
self._run_command(command)
|
||||
|
||||
def run_script(self, script, env=None, return_output=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue