summaryrefslogtreecommitdiffstats
path: root/cobbler/action_reposync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-01-10 14:38:05 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-01-10 14:38:05 -0500
commit7a4e81a4f3841d45e3bf46d345cd9c7e96546e22 (patch)
tree6aaab7cb6a1bccc3568346530ef25eae5a12989b /cobbler/action_reposync.py
parent0f365286251d26dfcc7e50a54fea6fd3591d3408 (diff)
downloadthird_party-cobbler-7a4e81a4f3841d45e3bf46d345cd9c7e96546e22.tar.gz
third_party-cobbler-7a4e81a4f3841d45e3bf46d345cd9c7e96546e22.tar.xz
third_party-cobbler-7a4e81a4f3841d45e3bf46d345cd9c7e96546e22.zip
Modify reposync to not preserve permissions on rsync.
Diffstat (limited to 'cobbler/action_reposync.py')
-rw-r--r--cobbler/action_reposync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 4dce915..70656af 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -203,7 +203,7 @@ class RepoSync:
spacer = "-e ssh"
if not repo.mirror.endswith("/"):
repo.mirror = "%s/" % repo.mirror
- cmd = "rsync -av %s --delete --delete-excluded --exclude-from=/etc/cobbler/rsync.exclude %s %s" % (spacer, repo.mirror, dest_path)
+ cmd = "rsync -rltDv %s --delete --delete-excluded --exclude-from=/etc/cobbler/rsync.exclude %s %s" % (spacer, repo.mirror, dest_path)
print _("- %s") % cmd
rc = sub_process.call(cmd, shell=True)
if rc !=0: