From f65f2450df583702b3305ad5fe9ae1d72a7588be Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Thu, 24 Oct 2019 12:43:49 -0500 Subject: 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. --- lib/spack/spack/database.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3-70-g09d2