summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/uninstall.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/uninstall.py b/lib/spack/spack/cmd/uninstall.py
index 7183817908..72ad132112 100644
--- a/lib/spack/spack/cmd/uninstall.py
+++ b/lib/spack/spack/cmd/uninstall.py
@@ -40,6 +40,7 @@ error_message = """You can either:
b) use spack uninstall -a to uninstall ALL matching specs.
"""
+
def ask_for_confirmation(message):
while True:
tty.msg(message + '[y/n]')
@@ -122,6 +123,7 @@ def installed_dependents(specs):
for item in specs:
lst = [x for x in item.package.installed_dependents if x not in specs]
if lst:
+ lst = list(set(lst))
dependents[item] = lst
return dependents