This commit is contained in:
Greg Neagle
2011-11-17 19:29:48 -08:00
2 changed files with 32 additions and 0 deletions
+7
View File
@@ -880,6 +880,7 @@ class AppleUpdates(object):
results['installed'] = []
results['download'] = []
last_output = None
while True:
if stop_allowed and munkicommon.stopRequested():
job.stop()
@@ -895,6 +896,12 @@ class AppleUpdates(object):
time.sleep(1)
continue
# Don't bother parsing the stdout output if it hasn't changed since
# the last loop iteration.
if last_output == output:
continue
last_output = output
output = output.decode('UTF-8').strip()
# send the output to STDOUT or MunkiStatus as applicable
if output.startswith('Progress: '):