Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pakages/spack/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def prepare_cache(self, registries=None, tag=None):
# Note - for now not signing, since we don't have a consistent key strategy
# The spack function is a hairball that doesn't respect the provided filename
spec = extract_tarball(request.pkg.spec, artifact)
if not spec:
if not spec or not os.path.exists(spec.prefix):
continue

# Remove the build request if we hit it. Note that this
Expand All @@ -190,7 +190,7 @@ def prepare_cache(self, registries=None, tag=None):
if not requests:
break

# And finish this piece of the install
# And finish this piece of the install
spec.package.installed_from_binary_cache = True
spack.hooks.post_install(spec)
spack.store.db.add(spec, spack.store.layout)
Expand Down