Skip to content

Commit

Permalink
rsync-repos: Fix regression from previous commit
Browse files Browse the repository at this point in the history
We were missing `--delete`, etc.
  • Loading branch information
cgwalters committed Jun 21, 2018
1 parent 52a7794 commit d7d3984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rsync-repos
Original file line number Diff line number Diff line change
Expand Up @@ -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('/'):
Expand All @@ -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)

Expand Down

0 comments on commit d7d3984

Please sign in to comment.