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"
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"
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()