summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2016-03-18 09:46:18 -0700
committerGregory Becker <becker33@llnl.gov>2016-03-18 09:46:18 -0700
commit80495e50f9b3a5de6d0aadb054a770a685939e79 (patch)
tree942a56211d3e8061da4fe99bd287b4b2d14b8b60 /lib
parent1fa38689d87480bb0d291af9b9cf0dbcf7557eb5 (diff)
downloadspack-80495e50f9b3a5de6d0aadb054a770a685939e79.tar.gz
spack-80495e50f9b3a5de6d0aadb054a770a685939e79.tar.bz2
spack-80495e50f9b3a5de6d0aadb054a770a685939e79.tar.xz
spack-80495e50f9b3a5de6d0aadb054a770a685939e79.zip
added error class for error that should never come up
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/directory_layout.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spack/spack/directory_layout.py b/lib/spack/spack/directory_layout.py
index 9f17404062..dfd0dc42e4 100644
--- a/lib/spack/spack/directory_layout.py
+++ b/lib/spack/spack/directory_layout.py
@@ -498,3 +498,10 @@ class NoSuchExtensionError(DirectoryLayoutError):
super(NoSuchExtensionError, self).__init__(
"%s cannot be removed from %s because it's not activated."% (
ext_spec.short_spec, spec.short_spec))
+
+class DependencyConflictError(SpackError):
+ """Raised when the dependencies cannot be flattened as asked for."""
+ def __init__(self, conflict):
+ super(DependencyConflictError, self).__init__(
+ "%s conflicts with another file in the flattened directory." %(
+ conflict))