mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Updated for KeyboardInterrupt
This commit is contained in:
parent
a6091d4c2f
commit
4accdfe1a2
1 changed files with 1 additions and 4 deletions
|
@ -85,10 +85,7 @@ 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}")
|
||||||
|
|
||||||
try:
|
|
||||||
answer: str = input('\nDo you want to remove? [y/N] ')
|
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…
Reference in a new issue