bugfix: fix spack buildcache list --allarch
`spack buildcache list` was trying to construct an `Arch` object and compare it to `arch_for_spec(<spec>)`. for each spec in the buildcache. `Arch` objects are only intended to be constructed for the machine they describe. The `ArchSpec` object (part of the `Spec`) is the descriptor that lets us talk about architectures anywhere. - [x] Modify `spack buildcache list` and `spack buildcache install` to filter with `Spec` matching instead of using `Arch`.
Showing
- lib/spack/spack/binary_distribution.py 3 additions, 9 deletionslib/spack/spack/binary_distribution.py
- lib/spack/spack/cmd/buildcache.py 19 additions, 3 deletionslib/spack/spack/cmd/buildcache.py
- lib/spack/spack/test/cmd/buildcache.py 31 additions, 5 deletionslib/spack/spack/test/cmd/buildcache.py
Loading
Please register or sign in to comment