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.
This commit is contained in:
Massimiliano Culpo
2018-07-17 20:43:30 +02:00
committed by scheibelp
parent 8ce62ba513
commit 373b3d2444
4 changed files with 64 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ class Externaltool(Package):
url = "http://somewhere.com/tool-1.0.tar.gz"
version('1.0', '1234567890abcdef1234567890abcdef')
version('0.9', '1234567890abcdef1234567890abcdef')
depends_on('externalprereq')