no need to maintain timestamps: remove -t and -O from rsync command

This commit is contained in:
jesus m. rodriguez 2011-12-05 11:53:21 -05:00
parent b0070e7a2d
commit abf23e0778

View file

@ -279,7 +279,7 @@ class YumRepoReleaser(Releaser):
yum_temp_dir = mkdtemp(dir=self.build_dir, prefix="yumrepo-") yum_temp_dir = mkdtemp(dir=self.build_dir, prefix="yumrepo-")
os.chdir(yum_temp_dir) os.chdir(yum_temp_dir)
print("Syncing yum repo: %s -> %s" % (rsync_location, yum_temp_dir)) print("Syncing yum repo: %s -> %s" % (rsync_location, yum_temp_dir))
output = run_command("rsync -avtz %s %s" % (rsync_location, yum_temp_dir)) output = run_command("rsync -avz %s %s" % (rsync_location, yum_temp_dir))
debug(output) debug(output)
rpm_ts = rpm.TransactionSet() rpm_ts = rpm.TransactionSet()
@ -312,7 +312,7 @@ class YumRepoReleaser(Releaser):
print("Syncing yum repository back to: %s" % rsync_location) print("Syncing yum repository back to: %s" % rsync_location)
# TODO: configurable rsync options? # TODO: configurable rsync options?
cmd = "rsync -avtz -O --no-p --no-g --delete %s/ %s" % \ cmd = "rsync -avz --no-p --no-g --delete %s/ %s" % \
(yum_temp_dir, rsync_location) (yum_temp_dir, rsync_location)
if self.dry_run: if self.dry_run:
self.print_dry_run_warning(cmd) self.print_dry_run_warning(cmd)