Skip to content

Commit

Permalink
Merge pull request conda#3876 from kalefranz/post-config-build-check
Browse files Browse the repository at this point in the history
add check for mutually exclusive always_softlink and always_copy
  • Loading branch information
kalefranz authored Nov 14, 2016
2 parents 95cf620 + 5e24746 commit 91b8173
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conda/base/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ def post_build_validation(self):
"'client_ssl_cert' is required when 'client_ssl_cert_key' "
"is defined")
errors.append(error)
if self.always_copy and self.always_softlink:
error = ValidationError('always_copy', self.always_copy, "<<merged>>",
"'always_copy' and 'always_softlink' are mutually exclusive. "
"Only one can be set to 'True'.")
errors.append(error)
return errors

_envs_dirs = SequenceParameter(string_types, aliases=('envs_dirs', 'envs_path'),
Expand Down

0 comments on commit 91b8173

Please sign in to comment.