From 74a37138d3729d571d9161b4e0595f6cb9ecc592 Mon Sep 17 00:00:00 2001 From: ocaisa Date: Tue, 10 Sep 2024 13:05:18 +0200 Subject: [PATCH] Fix typo in `create_lmodsitepackage.py` Current typo results in the following problem ```bash [ritop7377@login-2.BETZY ~]$ ml Currently Loaded Modules: 1) StdEnv (S) 2) EESSI/2023.06 Where: S: Module is Sticky, requires --force to unload or purge [ritop@login ~]$ module purge /usr/bin/lua: /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/.lmod/SitePackage.lua:21: variable 'False' is not declared stack traceback: [C]: in function 'error' /cluster/installations/lmod/lmod/libexec/../tools/strict.lua:36: in function /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/.lmod/SitePackage.lua:21: in function 'from_eessi_prefix' /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/.lmod/SitePackage.lua:189: in function (tail call): ? /cluster/installations/lmod/lmod/libexec/Master.lua:381: in function 'load' /cluster/installations/lmod/lmod/libexec/MasterControl.lua:1009: in function 'load' /cluster/installations/lmod/lmod/libexec/Master.lua:773: in function 'reload_sticky' /cluster/installations/lmod/lmod/libexec/MasterControl.lua:1120: in function 'unload_usr' /cluster/installations/lmod/lmod/libexec/cmdfuncs.lua:496: in function 'Purge' /cluster/installations/lmod/lmod/libexec/cmdfuncs.lua:473: in function 'cmd' /cluster/installations/lmod/lmod/libexec/lmod:512: in function 'main' /cluster/installations/lmod/lmod/libexec/lmod:570: in main chunk [C]: ? ``` --- create_lmodsitepackage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_lmodsitepackage.py b/create_lmodsitepackage.py index 7e55bce2a5..62f073c9a6 100755 --- a/create_lmodsitepackage.py +++ b/create_lmodsitepackage.py @@ -28,7 +28,7 @@ -- If EESSI_PREFIX wasn't defined, we cannot check if this module was from the EESSI environment -- In that case, we assume it isn't, otherwise EESSI_PREFIX would (probably) have been set if eessi_prefix == nil then - return False + return false else -- NOTE: exact paths for site so may need to be updated later. -- See https://github.com/EESSI/software-layer/pull/371