def installUpdates(self): commands = Commands(self.logger) if self._appUpdateHandler.isInstallReady(): self._appUpdateHandler.prepareInstallation(commands) self._appUpdateHandler.executeInstallation(commands) if self._repoUpdateHandler.areUpdatesAvailable(): self._repoUpdateHandler.prepareInstallation(commands) restartWithCommands(commands, self.logger)
def executeInstallation(self, commands): """Usually means to install and restart""" restartWithCommands(commands, self.logger)