From c78545d5f12ea3696bc53a68beaef3be71a407e1 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 3 Feb 2025 16:33:36 +0100 Subject: [PATCH] fix year dependent license verification check --- lib/spack/spack/cmd/license.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/spack/spack/cmd/license.py b/lib/spack/spack/cmd/license.py index 7e2caf1b55b..def6d5351a5 100644 --- a/lib/spack/spack/cmd/license.py +++ b/lib/spack/spack/cmd/license.py @@ -3,7 +3,6 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) -import datetime import os import re from collections import defaultdict @@ -97,7 +96,7 @@ def list_files(args): OLD_LICENSE, SPDX_MISMATCH, GENERAL_MISMATCH = range(1, 4) #: Latest year that copyright applies. UPDATE THIS when bumping copyright. -latest_year = datetime.date.today().year +latest_year = 2024 # year of 0.22 release strict_date = r"Copyright 2013-%s" % latest_year #: regexes for valid license lines at tops of files