From d7d3984914389849bffec689b243512304dd1aec Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 21 Jun 2018 15:53:16 -0400 Subject: [PATCH] rsync-repos: Fix regression from previous commit We were missing `--delete`, etc. --- rsync-repos | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rsync-repos b/rsync-repos index ce92c43..23cab69 100755 --- a/rsync-repos +++ b/rsync-repos @@ -28,6 +28,7 @@ parser.add_argument("--rsync-opt", help="Additional (single) rsync option", action='append', default=[]) args = parser.parse_args() + if not args.src.endswith('/'): args.src = args.src + '/' if not args.dest.endswith('/'): @@ -44,6 +45,7 @@ def rsync(paths, opts, ignore_missing_args=False): argv.append('--include=' + path) argv.extend(['--exclude=*', args.src, args.dest]) argv.extend(rsync_opts) + argv.extend(opts) print("Executing: {}".format(subprocess.list2cmdline(argv))) subprocess.check_call(argv)