Skip to content

Commit

Permalink
updated the new Lmod docs for gen 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Dec 13, 2024
1 parent 735e467 commit 31a1f76
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 9 additions & 1 deletion docs/source/025_new.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
New Features in Lmod
====================

**Updated Tracking Module Usage**
(Lmod 8.7.54+) The optional module usage tracking system has been
updated. It now uses Python3 and mysql.connector.python. The new
system also greatly reduces the amount of data stored. See the
updated documentation at :ref:`tracking_usage` and how to convert
from old gen 1 format to the new gen 2 database format at
:ref:`convert_gen1_gen2-label`


**LMOD_SHOW_HIDDEN**
(Lmod 8.7.54+) The environment variable **LMOD_SHOW_HIDDEN**
can be used to control whether hidden modules will be show under
list, spider, avail. See :ref:`show_hidden-label` for more details



**Accessing isVisible status from load hook**
(Lmod 8.7.52+) The mname object is passed to the load hook. Sites
can access the isVisible status by t.mname:isVisible()
Expand Down
5 changes: 2 additions & 3 deletions src/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,8 @@ function readAdmin()

for v in whole:split("\n") do
repeat
v = v:gsub("%s+$","")

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

Expand Down

0 comments on commit 31a1f76

Please sign in to comment.