Skip to content
Browse files

Merge pull request #133 from mdomsch/bug/131

sync remote2remote: set target_uri on updated files too, bug 131
  • Loading branch information...
2 parents ea21c77 + 2a4fafc commit 774942373a5a9797250165952ecfb857546b017d @mludvig mludvig committed
Showing with 5 additions and 4 deletions.
  1. +5 −4 s3cmd
View
9 s3cmd
@@ -656,10 +656,11 @@ def cmd_sync_remote2remote(args):
print(u"Summary: %d source files to copy, %d files at destination to delete" % (src_count, dst_count))
- if src_count > 0:
- ### Populate 'remote_uri' only if we've got something to sync from src to dst
- for key in src_list:
- src_list[key]['target_uri'] = destination_base + key
+ ### Populate 'target_uri' only if we've got something to sync from src to dst
+ for key in src_list:
+ src_list[key]['target_uri'] = destination_base + key
+ for key in update_list:
+ update_list[key]['target_uri'] = destination_base + key
if cfg.dry_run:
for key in exclude_list:

0 comments on commit 7749423

Please sign in to comment.
Something went wrong with that request. Please try again.