Browse code

remote_copy(): fix value in failed_copy_list

Patch by Jamie Burchell on https://github.com/s3tools/s3cmd/pull/193

Matt Domsch authored on 2013/11/26 10:52:36
Showing 1 changed files
... ...
@@ -1020,10 +1020,8 @@ def remote_copy(s3, copy_pairs, destination_base):
1020 1020
             saved_bytes = saved_bytes + int(info['headers']['content-length'])
1021 1021
             output(u"remote copy: %s -> %s" % (dst1, dst2))
1022 1022
         except:
1023
-            #raise
1024
-            ## don't raise error but add file that can not be copied into array for further process
1025 1023
             warning(u'Unable to remote copy files %s -> %s' % (dst1_uri, dst2_uri))
1026
-            failed_copy_list[dst2_uri] = src_obj    
1024
+            failed_copy_list[dst2] = src_obj    
1027 1025
     return (len(copy_pairs), saved_bytes, failed_copy_list)
1028 1026
 
1029 1027
 def _build_attr_header(local_list, src):