From 0d7c35646d7d6d6c19148d63a71bb64a84ad803d Mon Sep 17 00:00:00 2001 From: Greg Neagle Date: Thu, 23 Jul 2009 15:13:25 +0000 Subject: [PATCH] Fixed display of software removals when detail is suppressed and the last removal item does not require a restart. git-svn-id: http://munki.googlecode.com/svn/trunk@131 a4e17f2e-e282-11dd-95e1-755cbddbdd66 --- .../ManagedSoftwareUpdate/ManagedSoftwareUpdate.applescript | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/ManagedSoftwareUpdate/ManagedSoftwareUpdate.applescript b/code/ManagedSoftwareUpdate/ManagedSoftwareUpdate.applescript index 604f81a2..c40c3256 100755 --- a/code/ManagedSoftwareUpdate/ManagedSoftwareUpdate.applescript +++ b/code/ManagedSoftwareUpdate/ManagedSoftwareUpdate.applescript @@ -97,7 +97,11 @@ on itemstoinstall() if not ShowRemovalDetail then if removalcount > 0 then if restartRequired then - set |RestartAction| of removalitem to "RequireRestart" + try + set |RestartAction| of removalitem to "RequireRestart" + on error + set removalitem to removalitem & {|RestartAction|:"RequireRestart"} + end try end if set display_name of removalitem to "Software removals" set |description| of removalitem to "Scheduled removal of managed software."