From 141e8b8de39217be5600cfcb5d5848effdeef3fe Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Fri, 19 Apr 2019 13:20:41 -0700 Subject: [PATCH] Fix backwards compatibility for module naming (#11236) f242f5f8 changed the format strings but maintained backwards compatibility in all cases except one: The list of valid tokens for the module naming schemes was not updated properly to contain both the new and old styles for compilers and package names. This PR re-adds the old tokens into the list of valid tokens. --- lib/spack/spack/modules/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/spack/spack/modules/common.py b/lib/spack/spack/modules/common.py index a372f3dd01c..e16e366cb02 100644 --- a/lib/spack/spack/modules/common.py +++ b/lib/spack/spack/modules/common.py @@ -65,6 +65,10 @@ 'compiler.name', 'compiler.version', 'architecture' + # tokens from old-style format strings + 'package', + 'compilername', + 'compilerver', )