mirror of
https://github.com/munki/munki.git
synced 2026-04-24 05:49:42 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user