Fix issue with exclude and rsync.

development
Shawn Davis 1 year ago
parent 63443d44fe
commit 20866e78ed
  1. 5
      scripttease/lib/commands/posix.py

@ -539,6 +539,7 @@ def rsync(source, target, delete=False, exclude=None, host=None, key_file=None,
tokens.append("--delete")
if exclude is not None:
# tokens.append("--exclude-from={'%s'}" % exclude)
tokens.append("--exclude-from=%s" % exclude)
# --partial and --progress
@ -653,7 +654,8 @@ def sync(source, target, delete=False, exclude=None, links=True, recursive=True,
tokens = list()
tokens.append("rsync")
tokens.append("--cvs-exclude")
# tokens.append("--cvs-exclude")
tokens.append("--exclude=.git")
tokens.append("--checksum")
tokens.append("--compress")
@ -664,6 +666,7 @@ def sync(source, target, delete=False, exclude=None, links=True, recursive=True,
tokens.append("--delete")
if exclude is not None:
# tokens.append("--exclude-from={'%s'}" % exclude)
tokens.append("--exclude-from=%s" % exclude)
# --partial and --progress

Loading…
Cancel
Save