Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
B
buildblocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Pmodules
buildblocks
Commits
e01e8cac
Commit
e01e8cac
authored
Sep 28, 2015
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pmodules/libmodules.tcl
- better debug output in 'module-addgroup()'
parent
9ea9825e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
Bootstrap/Pmodules/libmodules.tcl
Bootstrap/Pmodules/libmodules.tcl
+9
-6
No files found.
Bootstrap/Pmodules/libmodules.tcl
View file @
e01e8cac
...
...
@@ -27,7 +27,7 @@ proc module-addgroup { group } {
global name
global version
debug
$group
debug
"called with arg
$group
"
set Implementation
[
file join
{*}
$::implementation
]
set GROUP
[
string toupper $group
]
...
...
@@ -46,25 +46,28 @@ proc module-addgroup { group } {
debug
"mode=load: new MODULEPATH=
$env
(MODULEPATH)"
debug
"mode=load: new PMODULES_USED_GROUPS=
$env
(PMODULES_USED_GROUPS)"
}
elseif
{
[
module-info mode remove
]
}
{
# remove orphan modules
debug
"remove orphan modules"
set GROUP
[
string toupper $group
]
debug
"remove hierarchical group '
${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
}]
}
{
debug
"unloading
module
:
$m
"
debug
"unloading:
$m
"
module unload $
{
m
}
}
}
}
else
{
debug
"no orphan modules to unload"
}
remove-path MODULEPATH $::PmodulesRoot/$group/$::PmodulesModulfilesDir/$Implementation
remove-path PMODULES_USED_GROUPS $group
debug
"mode=remove:
$env
(MODULEPATH)"
remove-path MODULEPATH $::PmodulesRoot/$group/$::PmodulesModulfilesDir/$Implementation
debug
"mode=remove:
$env
(PMODULES_USED_GROUPS)"
remove-path PMODULES_USED_GROUPS $group
}
if
{
[
module-info mode switch2
]
}
{
debug
"mode=switch2"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment