From f85c76bd42a30eeea0e2457c044843bb9abb148c Mon Sep 17 00:00:00 2001 From: Vitezslav Cizek Date: Wed, 8 Jan 2014 15:18:02 +0100 Subject: [PATCH] correctly specify --delete option when using rsync --- osc/commandline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 9584748b..c3b0be9d 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5634,7 +5634,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. hostargs.append(long_name) hostargs.append(hostprefer) - rsync_prefer_cmd = ['rsync', '-az', '-delete', '-e', 'ssh', + rsync_prefer_cmd = ['rsync', '-az', '--delete', '-e', 'ssh', pdir, "%s:%s" % (hostname, os.path.dirname(hostprefer))] print('Run: %s' % " ".join(rsync_prefer_cmd)) @@ -5686,7 +5686,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. ### run all commands ### # 1.) rsync sources - rsync_source_cmd = ['rsync', '-az', '-delete', '-e', 'ssh', cwd, "%s:%s" % (hostname, hostpath)] + rsync_source_cmd = ['rsync', '-az', '--delete', '-e', 'ssh', cwd, "%s:%s" % (hostname, hostpath)] print('Run: %s' % " ".join(rsync_source_cmd)) ret = run_external(rsync_source_cmd[0], *rsync_source_cmd[1:]) if ret != 0: