Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def executeInstallation(self, commands):
     """Usually means to install and restart"""
     
     restartWithCommands(commands, self.logger)