diff --git a/lib/spack/spack/binary_distribution.py b/lib/spack/spack/binary_distribution.py index 884d38e2b5103f..9a3937629e4500 100644 --- a/lib/spack/spack/binary_distribution.py +++ b/lib/spack/spack/binary_distribution.py @@ -2286,7 +2286,7 @@ def needs_rebuild(spec, mirror_url): # format of the name, in order to determine if the package # needs to be rebuilt. cache_prefix = build_cache_prefix(mirror_url) - specfile_name = tarball_name(spec, ".spec.json") + specfile_name = tarball_name(spec, ".spec.json.sig") specfile_path = os.path.join(cache_prefix, specfile_name) # Only check for the presence of the json version of the spec. If the