From 90c6f1a60255fe14c20f338169aff2244c7d6332 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 15 Apr 2015 19:06:14 +0200 Subject: [PATCH] scripts/Bootstrap/Pmodules/modulecmd.in: - bugfix in sub-command use: - PSI_LOADEDFAMILIES was not updated --- scripts/Bootstrap/Pmodules/modulecmd.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Bootstrap/Pmodules/modulecmd.in b/scripts/Bootstrap/Pmodules/modulecmd.in index c5b97ea..f6ca816 100755 --- a/scripts/Bootstrap/Pmodules/modulecmd.in +++ b/scripts/Bootstrap/Pmodules/modulecmd.in @@ -1029,6 +1029,7 @@ subcommand_use() { if (( ${HIERARCHY_DEPTHS[$arg]} != 0 )); then die 3 "${CMD} ${0##_}: cannot add family ${arg} to module path" fi + append_path PSI_LOADEDFAMILIES "${arg}" dirs_to_add+=( ${modulepath_root}/${arg} ) elif [[ ${arg} =~ ^${modulepath_root} ]]; then die 3 "${CMD} ${0##_}: illegal directory: ${arg}" @@ -1043,6 +1044,7 @@ subcommand_use() { shift done echo "export PSI_USED_RELEASES=${PSI_USED_RELEASES}" + echo "export PSI_LOADEDFAMILIES=${PSI_LOADEDFAMILIES}" [[ ${#dirs_to_add[@]} == 0 ]] && return for dir in "${dirs_to_add[@]}"; do