summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-10-22 19:48:02 +0200
committerCarl Hetherington <cth@carlh.net>2020-10-22 19:48:02 +0200
commitd5c0cf570f0307279f75ebcaa0f9f5c1fdb2e1f8 (patch)
tree0b8d3e6bf09cc728bb36b5f1355dfdde3a964560
parent240cb2562062385d79a9348f4af578b97ce7949b (diff)
parent3298597f8f6998eed5cde549686bf78c84744bdb (diff)
Merge branch 'master' of ssh://git.carlh.net/home/carl/git/cdist
-rwxr-xr-xcdist5
1 files changed, 2 insertions, 3 deletions
diff --git a/cdist b/cdist
index dfada3f..a00fa0c 100755
--- a/cdist
+++ b/cdist
@@ -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)