Skip to content

Commit

Permalink
add system modules path to lmod cache
Browse files Browse the repository at this point in the history
  • Loading branch information
smoors committed Sep 25, 2024
1 parent 4d6e299 commit 0f66253
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 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.7
Version: 1.8
Release: 1
License: GPL
Group: Applications/System
Expand Down Expand Up @@ -40,6 +40,8 @@ exit 0
%{_libexecdir}/lmod/run_lmod_cache.py

%changelog
* Wed Sep 25 2024 Samuel Moors <[email protected]>
- Add system modules path to Lmod cache
* Wed Dec 13 2023 Samuel Moors <[email protected]>
- Set default basedir OS to Rocky 8
* Wed Nov 29 2023 Ward Poelmans <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion run_lmod_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def run_cache_create(basedir, archs=None):
continue
logger.info("Creating cache for %s", arch)
modsubpathglob = os.path.join(modpath, "20[0-9][0-9][ab]", "all")
modsubpaths = os.pathsep.join(sorted(glob.glob(modsubpathglob)))
modsubpathsystem = glob.glob(os.path.join(modpath, 'system', 'all'))
modsubpaths = os.pathsep.join(sorted(glob.glob(modsubpathglob)) + modsubpathsystem)

cachedir = os.path.join(basedir, arch, "cacheDir")
systemfile = os.path.join(cachedir, "system.txt")
Expand Down

0 comments on commit 0f66253

Please sign in to comment.