Fix traceback that occurs if 'hdiutil info' has error output in munkicommon.hdiutilInfo()

This commit is contained in:
Greg Neagle
2014-07-14 14:10:53 -07:00
parent d0b19cb312
commit 13757c1e18
+1 -2
View File
@@ -874,8 +874,7 @@ def hdiutilInfo():
bufsize=-1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
(out, err) = proc.communicate()
if err:
print >> sys.stderr, (
'hdiutil error %s with image %s.' % (err, dmgpath))
print >> sys.stderr, 'hdiutil info error: %s' % err
(pliststr, out) = getFirstPlist(out)
if pliststr:
try: