mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Properly remove EOS overlay when no prefix is supplied (#441)
This commit is contained in:
parent
7a617d35f3
commit
f9a2dae282
|
@ -2219,20 +2219,19 @@ class LegendaryCLI:
|
||||||
print('Aborting...')
|
print('Aborting...')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
logger.info('Deleting overlay installation...')
|
||||||
|
self.core.remove_overlay_install()
|
||||||
|
|
||||||
if os.name != 'nt' and not prefix:
|
if os.name != 'nt' and not prefix:
|
||||||
logger.info('Registry entries in prefixes (if any) have not been removed. '
|
logger.info('Registry entries in prefixes (if any) have not been removed. '
|
||||||
f'This shouldn\'t cause any issues as the overlay will simply fail to load.')
|
f'This shouldn\'t cause any issues as the overlay will simply fail to load.')
|
||||||
return
|
else:
|
||||||
|
|
||||||
logger.info('Removing registry entries...')
|
logger.info('Removing registry entries...')
|
||||||
remove_registry_entries(prefix)
|
remove_registry_entries(prefix)
|
||||||
|
|
||||||
if os.name != 'nt':
|
if os.name != 'nt':
|
||||||
logger.info(f'Registry entries in prefixes other than "{prefix}" were not removed. '
|
logger.info(f'Registry entries in prefixes other than "{prefix}" were not removed. '
|
||||||
f'This shouldn\'t cause any issues as the overlay will simply fail to load.')
|
f'This shouldn\'t cause any issues as the overlay will simply fail to load.')
|
||||||
|
|
||||||
logger.info('Deleting overlay installation...')
|
|
||||||
self.core.remove_overlay_install()
|
|
||||||
logger.info('Done.')
|
logger.info('Done.')
|
||||||
|
|
||||||
elif args.action in {'install', 'update'}:
|
elif args.action in {'install', 'update'}:
|
||||||
|
|
Loading…
Reference in a new issue