uninstall : minor fixes

This commit is contained in:
Massimiliano Culpo 2016-03-29 17:28:46 +02:00
parent 1141f11955
commit 653d7c5257

View File

@ -40,6 +40,7 @@
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