Skip to content

Commit 637a147

Browse files
authored
Merge pull request #11 from vub-hpc/NewHideModAge
Hide modules older than module_age 6 (3 years), instead of 5
2 parents db7d368 + 027308f commit 637a147

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Lmod-config.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: Sitepackage and other config files for Lmod
22
Name: Lmod-config
3-
Version: 1.8
3+
Version: 1.9
44
Release: 1
55
License: GPL
66
Group: Applications/System

SitePackage.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ local function load_hook(t)
8787
if frameStk:atTop() then
8888
if age > 7 then
8989
LmodWarning{msg="vub_very_old_module", fullName=t.modFullName}
90-
elseif age > 5 then
90+
elseif age > 6 then
9191
LmodMessage{msg="vub_old_module", fullName=t.modFullName}
9292
end
9393
end
@@ -248,7 +248,7 @@ local function visible_hook(modT)
248248
if not mt:exists('legacy-software') then
249249
modT.isVisible = false
250250
end
251-
elseif module_age(modT) > 5 then
251+
elseif module_age(modT) > 6 then
252252
modT.isVisible = false
253253
end
254254
end

0 commit comments

Comments
 (0)