cookie = "" skipProgress = False; if 'cookie' in data: cookie = data['cookie'] if 'type' in data: originalType = data['type'] if 'skipProgress' in data: skipProgress = data['skipProgress'] cmakelib.waitForReply(proc, originalType, cookie, skipProgress) elif 'error' in obj: data = obj['error'] if debug: print("Waiting for error:", json.dumps(data)) originalType = "" cookie = "" message = "" if 'cookie' in data: cookie = data['cookie'] if 'type' in data: originalType = data['type'] if 'message' in data: message = data['message'] cmakelib.waitForError(proc, originalType, cookie, message) elif 'progress' in obj: data = obj['progress'] if debug: print("Waiting for progress:", json.dumps(data)) originalType = '' cookie = "" current = 0 message = "" if 'cookie' in data: cookie = data['cookie'] if 'type' in data: originalType = data['type'] if 'current' in data: current = data['current'] if 'message' in data: message = data['message'] cmakelib.waitForProgress(proc, originalType, cookie, current, message) elif 'handshake' in obj: data = obj['handshake'] if debug: print("Doing handshake:", json.dumps(data))
cookie = "" skipProgress = False if 'cookie' in data: cookie = data['cookie'] if 'type' in data: originalType = data['type'] if 'skipProgress' in data: skipProgress = data['skipProgress'] cmakelib.waitForReply(proc, originalType, cookie, skipProgress) elif 'error' in obj: data = obj['error'] if debug: print("Waiting for error:", json.dumps(data)) originalType = "" cookie = "" message = "" if 'cookie' in data: cookie = data['cookie'] if 'type' in data: originalType = data['type'] if 'message' in data: message = data['message'] cmakelib.waitForError(proc, originalType, cookie, message) elif 'progress' in obj: data = obj['progress'] if debug: print("Waiting for progress:", json.dumps(data)) originalType = '' cookie = "" current = 0 message = "" if 'cookie' in data: cookie = data['cookie'] if 'type' in data: originalType = data['type'] if 'current' in data: current = data['current'] if 'message' in data: message = data['message'] cmakelib.waitForProgress(proc, originalType, cookie, current, message) elif 'handshake' in obj: data = obj['handshake'] if debug: print("Doing handshake:", json.dumps(data))