Correct "apt uninstall" -> "apt remove" (#950)
* Correct "apt uninstall" -> "apt remove" * remove unused import
This commit is contained in:
committed by
Vladimir Iakovlev
parent
c53676e42f
commit
3bbd0e9463
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user