Merge pull request #1315 from Pmodules/1314-modulecmd-fix-type-error-in-subcommand_avail

1314 modulecmd fix type error in subcommand avail
This commit is contained in:
2025-10-30 17:28:52 +01:00
committed by GitHub
2 changed files with 41 additions and 5 deletions
+36
View File
@@ -1,4 +1,34 @@
# Changelog of Pmodules
## Version 2.0.2
Migragtion to GitHub:
Old Gitlab issue numbers and GitHub numbers do not match!
### modulecmd
* bugfix: type error fixed
(#1314)
* bugfix: if lsb_release is not installed on a Linux system, `/etc/os-release`
was sourced. This triggered an error message, since the variable VERSION was
defined as read-only in modulecmd.
(#1299)
* fix: reference to documentation in help text fixed
### build system
* enhancement: if verbose output is enabled, run make in verbose
mode.
(#1312)
### building Pmodules
* bugfix in recipe to build luaposix: specify installation path.
(#1306)
* bugfix in recipe to build 'modules': we have to run a distclean
before configuring.
(#1304)
* enhancement: cBash updated to version 5.3
(#1302)
## Version 2.0.1
### modulecmd
* There were several issues with the stack of used overlays. This could
@@ -16,6 +46,10 @@
(#428)
### build-system
* use of undefined LOADEDMODULES fixed
(#451)
* rename of pbuild::add\_configure\_args() reverted
(#449)
* Print message with used overlays
(#442)
* Work-around for bash(?) bug in calling make
@@ -50,6 +84,8 @@
(#427)
### build/compiling Pmodules
* don't use mkindex.tcl to create tclIndex file for libmodules.tcl.
(#450)
* Sub-command to create a tar-ball added. This tar-ball can be used to
to build a Pmodules RPM.
(#445)
+5 -5
View File
@@ -1680,12 +1680,12 @@ subcommand_avail() {
fi
std::append_path groups "${group}"
done
local -a modulepath=()
local -- path=''
for group in ${groups//:/ }; do
modulepath+="${modulepath_of_group[${group}]}:"
path+="${modulepath_of_group[${group}]}:"
done
local -a path=()
IFS=':' read -r -a path <<<"${modulepath%:}"
local -a path_list=()
IFS=':' read -r -a path_list <<<"${path%:}"
local -- string=''
for string in "${pattern[@]}"; do
get_available_modules \
@@ -1693,7 +1693,7 @@ subcommand_avail() {
mods \
"${string}" \
"${opt_use_relstages}" \
"${path[@]}"
"${path_list[@]}"
${output_function}
done
} # subcommand_avail()