mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-28 10:29:37 +02:00
build-system: don't cleanup modulefiles in base overlay
This commit is contained in:
@@ -1399,10 +1399,16 @@ _build_module() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanup_modulefiles(){
|
cleanup_modulefiles(){
|
||||||
|
#
|
||||||
|
# FIXME: Can it happen, that we remove module-/config-files which
|
||||||
|
# we shouldn't remove?
|
||||||
|
# For now we exclude removing from the overlay 'base' only.
|
||||||
|
#
|
||||||
[[ "${is_subpkg}" == 'yes' ]] && return 0
|
[[ "${is_subpkg}" == 'yes' ]] && return 0
|
||||||
local ol=''
|
local ol=''
|
||||||
for ol in "${Overlays[@]}"; do
|
for ol in "${Overlays[@]}"; do
|
||||||
[[ "${ol}" == "${ol_name}" ]] && continue
|
[[ "${ol}" == "${ol_name}" ]] && continue
|
||||||
|
[[ "${ol}" == 'base' ]] && continue
|
||||||
local modulefiles_root="${OverlayInfo[${ol}:modulefiles_root]}"
|
local modulefiles_root="${OverlayInfo[${ol}:modulefiles_root]}"
|
||||||
local dir="${modulefile_dir/${ol_modulefiles_root}/${modulefiles_root}}"
|
local dir="${modulefile_dir/${ol_modulefiles_root}/${modulefiles_root}}"
|
||||||
local fname="${dir}/${module_version}"
|
local fname="${dir}/${module_version}"
|
||||||
|
|||||||
Reference in New Issue
Block a user