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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
01e42bfe
Commit
01e42bfe
authored
Nov 9, 2016
by
Massimiliano Culpo
Committed by
Todd Gamblin
Nov 9, 2016
Browse files
Options
Downloads
Patches
Plain Diff
find, uninstall: improved user interaction in the case of empty DB (#2278)
parent
1b64213b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/spack/spack/cmd/find.py
+1
-1
1 addition, 1 deletion
lib/spack/spack/cmd/find.py
lib/spack/spack/cmd/uninstall.py
+5
-1
5 additions, 1 deletion
lib/spack/spack/cmd/uninstall.py
with
6 additions
and
2 deletions
lib/spack/spack/cmd/find.py
+
1
−
1
View file @
01e42bfe
...
@@ -115,7 +115,7 @@ def find(parser, args):
...
@@ -115,7 +115,7 @@ def find(parser, args):
q_args
=
query_arguments
(
args
)
q_args
=
query_arguments
(
args
)
query_specs
=
args
.
specs
(
**
q_args
)
query_specs
=
args
.
specs
(
**
q_args
)
# Exit early if no package matches the constraint
# Exit early if no package matches the constraint
if
not
query_specs
:
if
not
query_specs
and
args
.
constraint
:
msg
=
"
No package matches the query: {0}
"
.
format
(
args
.
contraint
)
msg
=
"
No package matches the query: {0}
"
.
format
(
args
.
contraint
)
tty
.
msg
(
msg
)
tty
.
msg
(
msg
)
return
return
...
...
This diff is collapsed.
Click to expand it.
lib/spack/spack/cmd/uninstall.py
+
5
−
1
View file @
01e42bfe
...
@@ -101,7 +101,7 @@ def concretize_specs(specs, allow_multiple_matches=False, force=False):
...
@@ -101,7 +101,7 @@ def concretize_specs(specs, allow_multiple_matches=False, force=False):
has_errors
=
True
has_errors
=
True
# No installed package matches the query
# No installed package matches the query
if
len
(
matching
)
==
0
:
if
len
(
matching
)
==
0
and
spec
is
not
any
:
tty
.
error
(
"
%s does not match any installed packages.
"
%
spec
)
tty
.
error
(
"
%s does not match any installed packages.
"
%
spec
)
has_errors
=
True
has_errors
=
True
...
@@ -196,6 +196,10 @@ def uninstall(parser, args):
...
@@ -196,6 +196,10 @@ def uninstall(parser, args):
uninstall_list
=
get_uninstall_list
(
args
)
uninstall_list
=
get_uninstall_list
(
args
)
if
not
uninstall_list
:
tty
.
msg
(
"
There are no package to uninstall.
"
)
return
if
not
args
.
yes_to_all
:
if
not
args
.
yes_to_all
:
tty
.
msg
(
"
The following packages will be uninstalled :
"
)
tty
.
msg
(
"
The following packages will be uninstalled :
"
)
print
(
''
)
print
(
''
)
...
...
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