Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide modules older than module_age 6 (3 years), instead of 5 #11

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading