Packages must be added to DB to be considered installed (#8038)
Fixes #8036 Before this PR Package.installed was returning True if the spec prefix existed, without checking the DB. This is wrong for external packages, whose prefix exists before being registered into the DB. Now the property checks for both the prefix and a DB entry.
Showing
- lib/spack/spack/package.py 29 additions, 6 deletionslib/spack/spack/package.py
- lib/spack/spack/test/data/packages.yaml 1 addition, 0 deletionslib/spack/spack/test/data/packages.yaml
- lib/spack/spack/test/database.py 33 additions, 0 deletionslib/spack/spack/test/database.py
- var/spack/repos/builtin.mock/packages/externaltool/package.py 1 addition, 0 deletions...spack/repos/builtin.mock/packages/externaltool/package.py
Loading
Please register or sign in to comment