mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-28 02:19:39 +02:00
Pmodules/libmodules.tcl
- module-addgroup: unloading bug fixed, closing #23
This commit is contained in:
@@ -49,14 +49,14 @@ proc module-addgroup { group } {
|
||||
set GROUP [string toupper $group]
|
||||
debug "remove hierarchical group '${GROUP}'"
|
||||
|
||||
if { [info exists env(PMODULES_LOADED_${GROUP})] } {
|
||||
if { [info exists ::env(PMODULES_LOADED_${GROUP})] } {
|
||||
debug "unloading orphan modules"
|
||||
set modules [split $env(PMODULES_LOADED_${GROUP}) ":"]
|
||||
foreach m ${modules} {
|
||||
if { ${m} == "--APPMARKER--" } {
|
||||
continue
|
||||
}
|
||||
if { [is-loaded ${module_name}] } {
|
||||
if { [is-loaded ${m}] } {
|
||||
debug "unloading: $m"
|
||||
module unload ${m}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user