def cancel_publish_repo(self): """ Call cancellation control hook. This is not currently supported for this distributor """ # TODO: Add cancel support self.cancelled = True return metadata.cancel_createrepo(self.working_dir)
def cancel_publish_repo(self, call_request, call_report): """ Call cancellation control hook. This is not currently supported for this distributor :param call_request: call request for the call to cancel :type call_request: CallRequest :param call_report: call report for the call to cancel :type call_report: CallReport """ # TODO: Add cancel support self.cancelled = True return metadata.cancel_createrepo(self.working_dir)
def cancel(self): return metadata.cancel_createrepo(self.mock_repo.working_dir)
def cancel_publish_repo(self, call_report, call_request): self.canceled = True if self.use_createrepo: return metadata.cancel_createrepo(self.repo_working_dir)
def cancel_publish_repo(self, call_request, call_report): self.cancelled = True repo_working_dir = getattr(self, 'repo_working_dir') return metadata.cancel_createrepo(repo_working_dir)