Permalink
Browse files

Merge pull request #129 from mdomsch/bug/128

fix single file sync local2remote traceback, bug #128
  • Loading branch information...
2 parents 38085b1 + 5631c00 commit ea21c7743c089e777b9aea83ad4ddfeef6d697b5 @mludvig mludvig committed Mar 7, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 s3cmd
View
3 s3cmd
@@ -1058,7 +1058,8 @@ def cmd_sync_local2remote(args):
## Make remote_key same as local_key for comparison if we're dealing with only one file
remote_list_entry = remote_list[remote_list.keys()[0]]
# Flush remote_list, by the way
- remote_list = { local_list.keys()[0] : remote_list_entry }
+ remote_list = SortedDict()
+ remote_list[local_list.keys()[0]] = remote_list_entry
local_list, remote_list, update_list, copy_pairs = compare_filelists(local_list, remote_list, src_remote = False, dst_remote = True, delay_updates = cfg.delay_updates)

0 comments on commit ea21c77

Please sign in to comment.