summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2015-10-27 13:34:46 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2015-10-27 13:34:46 -0700
commit50d0a2643bbef81ec2e97da209ae1974b6b77993 (patch)
treeba3a0869ec0536d675e9c07b243c34514e32604c /lib
parent3b554c709bb1dc3704939964ac1265ccf8597718 (diff)
downloadspack-50d0a2643bbef81ec2e97da209ae1974b6b77993.tar.gz
spack-50d0a2643bbef81ec2e97da209ae1974b6b77993.tar.bz2
spack-50d0a2643bbef81ec2e97da209ae1974b6b77993.tar.xz
spack-50d0a2643bbef81ec2e97da209ae1974b6b77993.zip
Not all package stages have an archive file (e.g. source code repos) but all of
them do have a source_path: use this instead to check whether the package resources were successfully retrieved.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/test-install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/test-install.py b/lib/spack/spack/cmd/test-install.py
index 58ab40aa7b..68b761d5dc 100644
--- a/lib/spack/spack/cmd/test-install.py
+++ b/lib/spack/spack/cmd/test-install.py
@@ -133,7 +133,7 @@ def create_test_output(topSpec, newInstalls, output, getLogFunc=fetch_log):
depBID = BuildId(dep)
errOutput = "Skipped due to failed dependency: {0}".format(
depBID.stringId())
- elif (not package.installed) and (not package.stage.archive_file):
+ elif (not package.installed) and (not package.stage.source_path):
result = TestResult.FAILED
errOutput = "Failure to fetch package resources."
elif not package.installed: