Skip to content
Permalink
Browse files

Fix and tweak detection of need to shutdown for apple updates

  • Loading branch information...
gregneagle committed Dec 18, 2018
1 parent 91dbacb commit 0bd202281e5acab29ae3f1e248912a8d48b1f0f1
Showing with 5 additions and 3 deletions.
  1. +5 −3 code/client/munkilib/appleupdates/au.py
@@ -656,13 +656,15 @@ def _run_softwareupdate(
elif 'Missing bundle identifier' in output:
# don't display this, it's noise
pass
elif output == '':
pass
elif output.contains('Please call halt'):
elif (('Please call halt' in output
or 'your computer must shut down' in output)
and not self.shutdown_instead_of_restart):
# This update requires we shutdown instead of a restart.
display.display_status_minor(output)
display.display_info('### This update requires a shutdown. ###')
self.shutdown_instead_of_restart = True
elif output == '':
pass
else:
display.display_status_minor(output)

0 comments on commit 0bd2022

Please sign in to comment.
You can’t perform that action at this time.