New preference -- SuppressStopButtonOnInstall

Hides the Stop button in the Managed Software Update status window during an install/removal session.

git-svn-id: http://munki.googlecode.com/svn/trunk@695 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2010-08-27 16:10:03 +00:00
parent 86cbaee5da
commit f9d3675c42
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -803,6 +803,10 @@ def run():
os.unlink(installinfo)
except (OSError, IOError):
munkicommon.display_warning("Could not remove %s" % installinfo)
if (munkicommon.munkistatusoutput and
munkicommon.pref('SuppressStopButtonOnInstall')):
munkistatus.hideStopButton()
if "removals" in plist:
# filter list to items that need to be removed
+2 -1
View File
@@ -39,7 +39,7 @@ import FoundationPlist
def get_version():
'''Returns version of munkitools'''
return "0.6.0 Build 640"
return "0.6.0 Build 664"
# output and logging functions
@@ -522,6 +522,7 @@ def prefs():
_prefs['UseClientCertificate'] = False
_prefs['SuppressUserNotification'] = False
_prefs['SuppressAutoInstall'] = False
_prefs['SuppressStopButtonOnInstall'] = False
prefsfile = "/Library/Preferences/ManagedInstalls.plist"
plist = {}