summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/package.py9
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: