Permalink
Browse files

Merge pull request #26 from interra/patch-1

Don't report "Disabled MD5 check for FILE" when --no-check-md5 used
  • Loading branch information...
2 parents 9c57a3b + b992318 commit fc4f740f5c6d3c0ed4fa32457addf35a12adefe7 @mludvig mludvig committed Feb 22, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 S3/FileLists.py
View
@@ -304,9 +304,10 @@ def __direction_str(is_remote):
## Check MD5
compare_md5 = 'md5' in cfg.sync_checks
# Multipart-uploaded files don't have a valid MD5 sum - it ends with "...-NN"
- if compare_md5 and (src_remote == True and src_list[file]['md5'].find("-") >= 0) or (dst_remote == True and dst_list[file]['md5'].find("-") >= 0):
- compare_md5 = False
- info(u"Disabled MD5 check for %s" % file)
+ if compare_md5:
+ if (src_remote == True and src_list[file]['md5'].find("-") >= 0) or (dst_remote == True and dst_list[file]['md5'].find("-") >= 0):
+ compare_md5 = False
+ info(u"Disabled MD5 check for %s" % file)
if attribs_match and compare_md5:
try:
if src_remote == False and dst_remote == True:

0 comments on commit fc4f740

Please sign in to comment.