diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2017-10-19 11:18:50 -0400 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2017-11-02 18:45:40 -0700 |
commit | 9a39efd966b0f1f7d1a0726b31ead824ae429e7a (patch) | |
tree | f1b3427feaa979ff3d8b4d6e28118ac2ce9e1232 /lib | |
parent | 538d855e1b8a3e4e892d40211002dc8df6f6a7fb (diff) | |
download | spack-9a39efd966b0f1f7d1a0726b31ead824ae429e7a.tar.gz spack-9a39efd966b0f1f7d1a0726b31ead824ae429e7a.tar.bz2 spack-9a39efd966b0f1f7d1a0726b31ead824ae429e7a.tar.xz spack-9a39efd966b0f1f7d1a0726b31ead824ae429e7a.zip |
filesystem_view: do not link external packages
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/filesystem_view.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/spack/spack/filesystem_view.py b/lib/spack/spack/filesystem_view.py index 7eda38b627..a3ed27e912 100644 --- a/lib/spack/spack/filesystem_view.py +++ b/lib/spack/spack/filesystem_view.py @@ -220,6 +220,11 @@ class YamlFilesystemView(FilesystemView): % spec.name) return False + if spec.external: + tty.warn(self._croot + 'Skipping external package: %s' + % colorize_spec(spec)) + return True + try: if not spec.package.is_activated(self.extensions_layout): spec.package.do_activate( @@ -245,6 +250,11 @@ class YamlFilesystemView(FilesystemView): % spec.name) return False + if spec.external: + tty.warn(self._croot + 'Skipping external package: %s' + % colorize_spec(spec)) + return True + if self.check_added(spec): tty.warn(self._croot + 'Skipping already linked package: %s' % colorize_spec(spec)) |