Exemple #1
0
 def updateOperation(self, sources, flags):
     job = self.concreteJob
     job.pid = os.getpid()
     job.state = "Running"
     try:
         instserv = installation_service.InstallationService()
         job.content = instserv.updateOperation(job, sources, flags)
     except Exception:
         job.content = traceback.format_exc()
         job.state = "Exception"
     else:
         job.state = "Completed"
Exemple #2
0
    def updateCheck(self):
        job = self.concreteJob
        job.pid = os.getpid()
        job.state = "Running"

        try:
            instserv = installation_service.InstallationService()
            instserv.updateAllCheck()
        except Exception:
            job.content = traceback.format_exc()
            job.state = "Exception"
        else:
            job.state = "Completed"
Exemple #3
0
    def applyUpdate(self, instanceId):
        job = self.concreteJob
        job.pid = os.getpid()
        job.state = "Running"

        try:
            instserv = installation_service.InstallationService()
            instserv.updateAllApply(instanceId)
        except Exception:
            job.content = traceback.format_exc()
            job.state = "Exception"
        else:
            job.state = "Completed"
 def __init__(self, env):
     stubClass.__init__(self, env)
     self._conarySoftwareMap = {}
     self.installationService = installation_service.InstallationService()