diff options
author | Greg Becker <becker33@llnl.gov> | 2019-10-24 12:43:49 -0500 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-10-24 10:43:49 -0700 |
commit | f65f2450df583702b3305ad5fe9ae1d72a7588be (patch) | |
tree | 208ad78ee8da142abc398852c124c85ca56ba2c6 /lib | |
parent | 845df79ac6ff886fdfae7dc72c3d29fb6a496521 (diff) | |
download | spack-f65f2450df583702b3305ad5fe9ae1d72a7588be.tar.gz spack-f65f2450df583702b3305ad5fe9ae1d72a7588be.tar.bz2 spack-f65f2450df583702b3305ad5fe9ae1d72a7588be.tar.xz spack-f65f2450df583702b3305ad5fe9ae1d72a7588be.zip |
database: update DB version and change to integer database versions (#13410)
Update on version format: change to an integer database format version for simplicity, instead of tracking the Spack version.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/database.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/database.py b/lib/spack/spack/database.py index 5110e66c7a..0ada7faa4c 100644 --- a/lib/spack/spack/database.py +++ b/lib/spack/spack/database.py @@ -50,7 +50,9 @@ from spack.util.lock import Lock, WriteTransaction, ReadTransaction, LockError _db_dirname = '.spack-db' # DB version. This is stuck in the DB file to track changes in format. -_db_version = Version('0.9.3') +# Increment by one when the database format changes. +# versions before 5 were not integers +_db_version = Version('5') # Timeout for spack database locks in seconds _db_lock_timeout = 120 |