fixed bug for find("-") comparison logic as -1 was being evaluated to true in all cases
macgyver13 authored on 2013/06/17 02:45:51... | ... |
@@ -367,7 +367,7 @@ def fetch_remote_list(args, require_attribs = False, recursive = None): |
367 | 367 |
'dev' : None, |
368 | 368 |
'inode' : None, |
369 | 369 |
} |
370 |
- if rem_list[key]['md5'].find("-"): # always get it for multipart uploads |
|
370 |
+ if rem_list[key]['md5'].find("-") > 0: # always get it for multipart uploads |
|
371 | 371 |
_get_remote_attribs(S3Uri(object_uri_str), rem_list[key]) |
372 | 372 |
md5 = rem_list[key]['md5'] |
373 | 373 |
rem_list.record_md5(key, md5) |