summaryrefslogtreecommitdiff
path: root/ick2/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick2/actions.py')
-rw-r--r--ick2/actions.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ick2/actions.py b/ick2/actions.py
index 4f3358f..9299609 100644
--- a/ick2/actions.py
+++ b/ick2/actions.py
@@ -355,7 +355,11 @@ class RsyncAction(Action): # pragma: no cover
if not self._remote(rsync_target):
env.report(1, 'rsync_target not acceptable\n')
- argv = ['rsync', '-av', './' + rsync_src + '/.', rsync_target + '/.']
+ argv = [
+ 'rsync', '-av', '--delete-after',
+ './{}/.'.format(rsync_src),
+ '{}/.'.format(rsync_target),
+ ]
exit_code = env.host_runcmd(argv, cwd=workspace)
env.report(exit_code, 'rsync finished (exit code %d)\n' % exit_code)
return exit_code