summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorChris Green <greenc@fnal.gov>2019-05-06 21:29:18 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2019-05-07 11:29:18 +0900
commit01eaca607f21af42a7007eabb3189292728cb6c0 (patch)
tree2d4d2e643ab62231331f52617abdeb970a4436db /etc
parent6de3e1c7b6a63d7798f3269db3818b57ab045bd8 (diff)
downloadspack-01eaca607f21af42a7007eabb3189292728cb6c0.tar.gz
spack-01eaca607f21af42a7007eabb3189292728cb6c0.tar.bz2
spack-01eaca607f21af42a7007eabb3189292728cb6c0.tar.xz
spack-01eaca607f21af42a7007eabb3189292728cb6c0.zip
Environment path sanitization and sourcing (#8476)
Add two functions to the EnvironmentModifications object to help users sanitize environment variables in their package definitions: * deprioritize_system_paths: this keeps system paths in the environment variable but moves them to the end. * prune_duplicate_paths: remove any duplicate paths from the variable This includes testing for the new functions as well as for (previously-untested) old convenience functions for environment variable manipulation. This also adds special handling for bash functions so they will be defined when the exported environment file is sourced.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions