info() reports "Disabled MD5 check for FILE" even if --check-no-md5 used... #26

Merged
merged 1 commit into from Feb 22, 2012
Jump to file or symbol
Failed to load files and symbols.
+4 −3
Split
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: