-
- Downloads
Fixed bug #42: problem with satisfies() for virtual dependencies.
- _cross_provider_maps() had suffered some bit rot (map returned was ill-formed but still worked for cases with one vdep) - ProviderIndex.satisfies() was only checking whether the result map was non-empty. It should check whether all common vdeps are *in* the result map, as that indicates there is *some* way to satisfy *all* of them. We were checking whether there was some way to satisfy *any one* of them, which is wrong. - Above would cause a problem when there is more than one vdep provider. - Added test that covers this case. - Added `constrained()` method to Spec. Analogous to `normalized()`: `constrain():constrained() :: normalize():normalized()`
Showing
- lib/spack/spack/spec.py 7 additions, 0 deletionslib/spack/spack/spec.py
- lib/spack/spack/test/spec_semantics.py 12 additions, 1 deletionlib/spack/spack/test/spec_semantics.py
- lib/spack/spack/virtual.py 5 additions, 4 deletionslib/spack/spack/virtual.py
- var/spack/mock_packages/netlib-blas/package.py 36 additions, 0 deletionsvar/spack/mock_packages/netlib-blas/package.py
- var/spack/mock_packages/netlib-lapack/package.py 37 additions, 0 deletionsvar/spack/mock_packages/netlib-lapack/package.py
- var/spack/mock_packages/openblas/package.py 37 additions, 0 deletionsvar/spack/mock_packages/openblas/package.py
Loading
Please register or sign in to comment