Skip to content

Commit

Permalink
factor out PR spack#7536
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsternberg committed Mar 20, 2018
1 parent caa35a2 commit 04c1343
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/spack/spack/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,9 @@ def return_separator_if_any(*args):
search = sep.join(after_list[start:end + 1])
except IndexError:
env.prepend_path(x, after)
continue

if search not in before:
# We just need to set the variable to the new value
# TODO: resolve DUP to "except" branch just above,
env.prepend_path(x, after)
else:
try:
Expand Down Expand Up @@ -532,8 +530,8 @@ def validate(env, errstream):


def filter_environment_blacklist(env, variables):
"""Generator that filters out any change to environment variables present
in the input list.
"""Generator that filters out any change to environment variables present in
the input list.
Args:
env: list of environment modifications
Expand Down

0 comments on commit 04c1343

Please sign in to comment.