diff --git a/Lmod-config.spec b/Lmod-config.spec index d092ab3..c1fc963 100644 --- a/Lmod-config.spec +++ b/Lmod-config.spec @@ -1,7 +1,7 @@ Summary: Sitepackage and other config files for Lmod Name: Lmod-config Version: 1.6 -Release: 1 +Release: 2 License: GPL Group: Applications/System BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot diff --git a/SitePackage.lua b/SitePackage.lua index c07580f..c89c5dd 100644 --- a/SitePackage.lua +++ b/SitePackage.lua @@ -244,8 +244,10 @@ local function visible_hook(modT) modT.isVisible = false elseif modT.fullName:find("AlphaFold/.*ColabFold") then modT.isVisible = false - elseif modT.fn:find("^/apps/brussel/CO7/") and not mt:exists('legacy-software') then - modT.isVisible = false + elseif modT.fn:find("^/apps/brussel/CO7/") then + if not mt:exists('legacy-software') then + modT.isVisible = false + end elseif module_age(modT) > 5 then modT.isVisible = false end