mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for KeyboardInterrupt
This commit is contained in:
parent
ca5095bc1b
commit
422af4f4b2
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ class RemovePackages(Configs):
|
||||||
for dep in dependencies:
|
for dep in dependencies:
|
||||||
print(f"{self.cyan:>16}-> {dep}{self.endc}")
|
print(f"{self.cyan:>16}-> {dep}{self.endc}")
|
||||||
|
|
||||||
answer: str = input('\nDo you want to remove? [y/N] ')
|
try:
|
||||||
|
answer: str = input('\nDo you want to remove? [y/N] ')
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
raise SystemExit()
|
||||||
|
|
||||||
if answer not in ['Y', 'y']:
|
if answer not in ['Y', 'y']:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Reference in a new issue