summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBarry Smith <bsmith@mcs.anl.gov>2016-10-29 22:57:41 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2016-10-29 20:57:41 -0700
commitef2c42a8897b352799f4b2ad98e9a8d3f48cc2e5 (patch)
treecb832195c283eb1103580e064bccb56f2c0a3dea /lib
parentc2d58d39dd40582f5b53ba6a0585f443645ab344 (diff)
downloadspack-ef2c42a8897b352799f4b2ad98e9a8d3f48cc2e5.tar.gz
spack-ef2c42a8897b352799f4b2ad98e9a8d3f48cc2e5.tar.bz2
spack-ef2c42a8897b352799f4b2ad98e9a8d3f48cc2e5.tar.xz
spack-ef2c42a8897b352799f4b2ad98e9a8d3f48cc2e5.zip
Do not check directory layout for external packages (#2172)
External packages do not have an spec.yaml file so don't check for it. Without this change any time a package depends on an external package when the new package is installed you will get the error Install prefix exists but contains no spec.yaml This problem has also haunted me since I started using Spack since PETSc depends on Python and I used an external python but fortunately it was relatively easy to debug once I could reproduce it at will. Funded-by: IDEAS Project: IDEAS/xSDK Time: 1 hour
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/database.py b/lib/spack/spack/database.py
index e9bd07d92c..80ebf6a2cf 100644
--- a/lib/spack/spack/database.py
+++ b/lib/spack/spack/database.py
@@ -468,7 +468,7 @@ class Database(object):
if key not in self._data:
installed = False
path = None
- if directory_layout:
+ if not spec.external and directory_layout:
path = directory_layout.path_for_spec(spec)
try:
directory_layout.check_installed(spec)