uninstall refactoring

This commit is contained in:
Vinicius Moreira
2019-08-13 18:41:36 -03:00
parent cb1ac69e77
commit 83c9e3c186
2 changed files with 11 additions and 5 deletions

View File

@@ -140,11 +140,11 @@ class GenericApplicationManager(ApplicationManager):
if man:
return man.update(app, root_password)
def uninstall(self, app: Application, root_password: str) -> SystemProcess:
def uninstall(self, app: Application, root_password: str, handler: ProcessHandler) -> bool:
man = self._get_manager_for(app)
if man:
return man.uninstall(app, root_password)
return man.uninstall(app, root_password, handler)
def install(self, app: Application, root_password: str, handler: ProcessHandler) -> bool:
man = self._get_manager_for(app)