summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-13 16:22:31 +0200
committerCarl Hetherington <cth@carlh.net>2021-05-13 16:22:31 +0200
commit8b5caef8c4cd0b08cdcae8e1d739166a903b1e23 (patch)
treef53f64031436a622873b5a72b22909797989a2cb
parenta25b222b2e5d549cc9bd14639442ea176554cdd1 (diff)
Try to fix notarization when an upload has already happened.
-rwxr-xr-xcdist8
1 files changed, 8 insertions, 0 deletions
diff --git a/cdist b/cdist
index 7f55522..26a2ccf 100755
--- a/cdist
+++ b/cdist
@@ -749,6 +749,14 @@ def notarize_dmg(dmg, bundle_id):
request_uuid = string_after(p, "RequestUUID")
if request_uuid is None:
+ print("Looking for upload ID")
+ message = string_after("message")
+ print("Looking in %s" % message)
+ if message:
+ m = re.match('.*The upload ID is ([0-9a-f\-]*)', message)
+ if m:
+ request_uuid = m.groups()[0]
+ if request_uuid is None:
print("Response: %s" % p)
raise Error('No RequestUUID found in response from Apple')