summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-02-04 20:31:39 +0100
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-04-14 11:08:17 +0200
commitdeb9102b2dd671871b1362b1d20a719fef077f0d (patch)
tree9940e81b72f4de4204813bd736b443284eed3cc4 /var
parente0be0d86836a02abad76e3abff5553b67b96a35a (diff)
downloadspack-deb9102b2dd671871b1362b1d20a719fef077f0d.tar.gz
spack-deb9102b2dd671871b1362b1d20a719fef077f0d.tar.bz2
spack-deb9102b2dd671871b1362b1d20a719fef077f0d.tar.xz
spack-deb9102b2dd671871b1362b1d20a719fef077f0d.zip
database: fix reindex with uninstalled deps (#28764)
* Fix reindex with uninstalled deps When a prefix of a dep is removed, and the db is reindexed, it is added through the dependent, but until now it incorrectly listed the spec as 'installed'. There was also some questionable behavior in the db when the same spec was added multiple times, it would always be marked installed. * Always reserve path * Only add installed spec's prefixes to install prefixes set * Improve warning, and ensure ensure only ensures * test: reindex with every file system remnant removed except for the old index; it should give a database with nothing installed, including records with installed==False,external==False,ref_count==0,explicit=True, and these should be removable from the database
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions