Skip to content

Commit

Permalink
Merge branch 'main' of ssh://github.com/TACC/Lmod
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Dec 13, 2024
2 parents 767e717 + 9e2b344 commit 735e467
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion docs/source/140_deprecating_modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ For example::

$ module load abc/1.2.3

-----------------------------------------------------------------
There are messages associated with the following module(s) :
-----------------------------------------------------------------
abc/1.2.3:
This module is deprecated and will be removed from the system
on June 19. Please load abc/2.3.4 instead.
-----------------------------------------------------------------


Note that this message is just text and in no way controls user access
Expand Down Expand Up @@ -64,6 +68,8 @@ full path to a modulefile. If it doesn't then it is a
moduleName/version string. Also, you can have several
modulefiles use the same message by separating them with *|*

You can add comments with the `#` character.

You can use Lua regular expression to also match one or modules for
both the full path to a module or the module fullname. Lua regular
expressions are much less powerful (see
Expand All @@ -87,7 +93,7 @@ names that have a '-' in their name requires % quoting.
The message can be as many lines as you like. The message ends with a
blank line. Below is an example::


# removed because ...
gcc/2.95: This module is deprecated and will be removed from the system on Jan 1. 1999.
Please switch to a newer compiler.

Expand Down
2 changes: 1 addition & 1 deletion src/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function readAdmin()
repeat
v = v:gsub("%s+$","")

if (v:sub(1,1) == "#") then
if (v:gsub("^%s+", ""):sub(1,1) == "#") then
-- ignore this comment line
break

Expand Down

0 comments on commit 735e467

Please sign in to comment.