Skip to content
This repository has been archived by the owner on Nov 4, 2018. It is now read-only.

Commit

Permalink
push md5_xattr to Config only if xattr module was imported
Browse files Browse the repository at this point in the history
Otherwise options.md5_xattr does not exist.
  • Loading branch information
Matt Domsch authored and mdomsch committed May 17, 2013
1 parent 8f9b035 commit f685a13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion s3cmd
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,8 @@ def main():
## Special handling for tri-state options (True, False, None)
cfg.update_option("enable", options.enable)
cfg.update_option("acl_public", options.acl_public)
cfg.update_option("md5_xattr", options.md5_xattr)
if 'xattr' in sys.modules.keys():
cfg.update_option("md5_xattr", options.md5_xattr)

## Check multipart chunk constraints
if cfg.multipart_chunk_size_mb < MultiPartUpload.MIN_CHUNK_SIZE_MB:
Expand Down

0 comments on commit f685a13

Please sign in to comment.