Skip to content

Commit

Permalink
hide modules older than module_age 6 (3 years), instead of 5
Browse files Browse the repository at this point in the history
  • Loading branch information
WilleBell committed Jan 6, 2025
1 parent db7d368 commit 027308f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Lmod-config.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: Sitepackage and other config files for Lmod
Name: Lmod-config
Version: 1.8
Version: 1.9
Release: 1
License: GPL
Group: Applications/System
Expand Down
4 changes: 2 additions & 2 deletions SitePackage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ local function load_hook(t)
if frameStk:atTop() then
if age > 7 then
LmodWarning{msg="vub_very_old_module", fullName=t.modFullName}
elseif age > 5 then
elseif age > 6 then
LmodMessage{msg="vub_old_module", fullName=t.modFullName}
end
end
Expand Down Expand Up @@ -248,7 +248,7 @@ local function visible_hook(modT)
if not mt:exists('legacy-software') then
modT.isVisible = false
end
elseif module_age(modT) > 5 then
elseif module_age(modT) > 6 then
modT.isVisible = false
end
end
Expand Down

0 comments on commit 027308f

Please sign in to comment.