mirror of
https://github.com/munki/munki.git
synced 2026-04-22 12:38:23 -05:00
Print error message when killing /usr/sbin/installer job due to timeout
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user