Print error message when killing /usr/sbin/installer job due to timeout

This commit is contained in:
Greg Neagle
2012-05-10 08:21:03 -07:00
parent 0184652d29
commit 790eac57a9
+3
View File
@@ -175,6 +175,9 @@ def install(pkgpath, choicesXMLpath=None, suppressBundleRelocation=False,
inactive += 1
if inactive >= timeout:
# no output for too long, kill this installer session
munkicommon.display_error(
"/usr/sbin/installer timeout after %d seconds"
% timeout)
job.stop()
break
# sleep a bit before checking for more output