Correct "apt uninstall" -> "apt remove" (#950)

* Correct "apt uninstall" -> "apt remove"

* remove unused import
This commit is contained in:
thatneat
2019-09-17 11:02:45 -07:00
committed by Vladimir Iakovlev
parent c53676e42f
commit 3bbd0e9463
2 changed files with 9 additions and 2 deletions
+7 -2
View File
@@ -53,5 +53,10 @@ def _get_operations(app):
@sudo_support
def get_new_command(command):
invalid_operation = command.output.split()[-1]
operations = _get_operations(command.script_parts[0])
return replace_command(command, invalid_operation, operations)
if invalid_operation == 'uninstall':
return [command.script.replace('uninstall', 'remove')]
else:
operations = _get_operations(command.script_parts[0])
return replace_command(command, invalid_operation, operations)