Merge
This commit is contained in:
commit
b0b417fd57
5
mysync
5
mysync
@ -68,7 +68,10 @@ def rsync_command(**kwargs):
|
|||||||
if localpath is not None:
|
if localpath is not None:
|
||||||
remotepath = path_filter(kwargs.get(PROP_REMOTE))
|
remotepath = path_filter(kwargs.get(PROP_REMOTE))
|
||||||
skip = kwargs.get(PROP_SKIP)
|
skip = kwargs.get(PROP_SKIP)
|
||||||
cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', '--rsync-path="%s"' % RSYNC_REMOTE_COMMAND, remotepath, localpath]
|
if remotepath.find('@') != -1:
|
||||||
|
cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', remotepath, localpath]
|
||||||
|
else:
|
||||||
|
cmd_l = ['rsync', '-avn' if DEBUG else '-av', '--delete', '--rsync-path="%s"' % RSYNC_REMOTE_COMMAND, remotepath, localpath]
|
||||||
if skip is not None:
|
if skip is not None:
|
||||||
for skip_dir in skip:
|
for skip_dir in skip:
|
||||||
if not skip_dir.endswith('/'):
|
if not skip_dir.endswith('/'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user