diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-10-20 21:07:53 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-10-20 21:07:53 +0200 |
| commit | 90bc86a9e8d9a138643c3c8333bd2d4af816be4a (patch) | |
| tree | 7280b89d64e5951932a7418e61e721261c5ac5d3 | |
| parent | 21b863b5cbc509d9cecae4a135152001ff46ba76 (diff) | |
Fix handling of notarization request.
| -rwxr-xr-x | cdist | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -734,14 +734,13 @@ def notarize(dmg, bundle_id): def string_after(process, key): lines = p.stdout.decode('utf-8').splitlines() - request_uuid = None for i in range(0, len(lines)): if lines[i].find(key) != -1: return lines[i+1].strip().replace('<string>', '').replace('</string>', '') - raise Error("Missing expected response %s from Apple" % key) - request_uuid = string_after(p, "RequestUUID") + if request_uuid is None: + raise Error('No RequestUUID found in response from Apple') for i in range(0, 30): print('Checking up on %s' % request_uuid) |
