Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
a7701513
Commit
a7701513
authored
8 years ago
by
Massimiliano Culpo
Browse files
Options
Downloads
Patches
Plain Diff
module : minor improvement to output formatting
parent
ba87937f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/spack
+1
-1
1 addition, 1 deletion
bin/spack
lib/spack/spack/cmd/module.py
+3
-3
3 additions, 3 deletions
lib/spack/spack/cmd/module.py
with
4 additions
and
4 deletions
bin/spack
+
1
−
1
View file @
a7701513
...
@@ -77,7 +77,7 @@ import llnl.util.tty as tty
...
@@ -77,7 +77,7 @@ import llnl.util.tty as tty
from
llnl.util.tty.color
import
*
from
llnl.util.tty.color
import
*
import
spack
import
spack
from
spack.error
import
SpackError
from
spack.error
import
SpackError
import
argparse
from
external
import
argparse
# Command parsing
# Command parsing
parser
=
argparse
.
ArgumentParser
(
parser
=
argparse
.
ArgumentParser
(
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/cmd/module.py
+
3
−
3
View file @
a7701513
...
@@ -95,9 +95,10 @@ def module_refresh(name, specs, args):
...
@@ -95,9 +95,10 @@ def module_refresh(name, specs, args):
tty
.
msg
(
'
No package matches your query
'
)
tty
.
msg
(
'
No package matches your query
'
)
return
return
tty
.
msg
(
'
You are about to regenerate the {name} module files for the following specs:
'
.
format
(
name
=
name
))
tty
.
msg
(
'
You are about to regenerate the {name} module files for the following specs:
\n
'
.
format
(
name
=
name
))
for
s
in
specs
:
for
s
in
specs
:
print
(
s
.
format
(
color
=
True
))
print
(
s
.
format
(
color
=
True
))
print
(
''
)
ask_for_confirmation
(
'
Do you want to proceed ?
'
)
ask_for_confirmation
(
'
Do you want to proceed ?
'
)
cls
=
module_types
[
name
]
cls
=
module_types
[
name
]
...
@@ -112,10 +113,9 @@ def module_refresh(name, specs, args):
...
@@ -112,10 +113,9 @@ def module_refresh(name, specs, args):
message
=
'
Name clashes detected in module files:
\n
'
message
=
'
Name clashes detected in module files:
\n
'
for
filename
,
writer_list
in
file2writer
.
items
():
for
filename
,
writer_list
in
file2writer
.
items
():
if
len
(
writer_list
)
>
1
:
if
len
(
writer_list
)
>
1
:
message
+=
'
file : {0}
\n
'
.
format
(
filename
)
message
+=
'
\n
file : {0}
\n
'
.
format
(
filename
)
for
x
in
writer_list
:
for
x
in
writer_list
:
message
+=
'
spec : {0}
\n
'
.
format
(
x
.
spec
.
format
(
color
=
True
))
message
+=
'
spec : {0}
\n
'
.
format
(
x
.
spec
.
format
(
color
=
True
))
message
+=
'
\n
'
tty
.
error
(
message
)
tty
.
error
(
message
)
tty
.
error
(
'
Operation aborted
'
)
tty
.
error
(
'
Operation aborted
'
)
raise
SystemExit
(
1
)
raise
SystemExit
(
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment