diff options
author | Cyrus Harrison <cyrush@llnl.gov> | 2021-03-29 17:09:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 17:09:34 -0700 |
commit | 79193dc37cd03d9b532683a78a3f3d2c54a9dd7a (patch) | |
tree | a411e75ac6c3e9a313522b48675fcbd61d716a9a /lib | |
parent | 4079bbce97950adfde394a276d710132af23f6e2 (diff) | |
download | spack-79193dc37cd03d9b532683a78a3f3d2c54a9dd7a.tar.gz spack-79193dc37cd03d9b532683a78a3f3d2c54a9dd7a.tar.bz2 spack-79193dc37cd03d9b532683a78a3f3d2c54a9dd7a.tar.xz spack-79193dc37cd03d9b532683a78a3f3d2c54a9dd7a.zip |
bugfix for active when pkg is already active error (#22587)
* bugfix for active when pkg is already active error
Co-authored-by: Greg Becker <becker33@llnl.gov>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/package.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 9dfd8bf01f..d87607a8dd 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -2319,8 +2319,13 @@ class PackageBase(six.with_metaclass(PackageMeta, PackageViewMixin, object)): extensions_layout = view.extensions_layout - extensions_layout.check_extension_conflict( - self.extendee_spec, self.spec) + try: + extensions_layout.check_extension_conflict( + self.extendee_spec, self.spec) + except spack.directory_layout.ExtensionAlreadyInstalledError as e: + # already installed, let caller know + tty.msg(e.message) + return # Activate any package dependencies that are also extensions. if with_dependencies: |