uninstall : minor fixes
This commit is contained in:
parent
1141f11955
commit
653d7c5257
@ -40,6 +40,7 @@
|
|||||||
b) use spack uninstall -a to uninstall ALL matching specs.
|
b) use spack uninstall -a to uninstall ALL matching specs.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def ask_for_confirmation(message):
|
def ask_for_confirmation(message):
|
||||||
while True:
|
while True:
|
||||||
tty.msg(message + '[y/n]')
|
tty.msg(message + '[y/n]')
|
||||||
@ -122,6 +123,7 @@ def installed_dependents(specs):
|
|||||||
for item in specs:
|
for item in specs:
|
||||||
lst = [x for x in item.package.installed_dependents if x not in specs]
|
lst = [x for x in item.package.installed_dependents if x not in specs]
|
||||||
if lst:
|
if lst:
|
||||||
|
lst = list(set(lst))
|
||||||
dependents[item] = lst
|
dependents[item] = lst
|
||||||
return dependents
|
return dependents
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user