MSU GUI should log which version is being launched.

This helps when debugging reported problems with the MSU GUI in Munki executions where the GUI was updated; was it updated before or after launching? ;)


git-svn-id: http://munki.googlecode.com/svn/trunk@1272 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Justin McWilliams
2011-08-05 15:50:08 +00:00
parent 915bc1b9ef
commit 2126bb5763

View File

@@ -52,7 +52,11 @@ class MSUAppDelegate(NSObject):
def applicationDidFinishLaunching_(self, sender):
NSLog(u"Managed Software Update finished launching.")
munki.log("MSU", "launched")
ver = NSBundle.mainBundle().infoDictionary().get(
'CFBundleShortVersionString')
NSLog("MSU GUI version: %s" % ver)
munki.log("MSU", "launched", "VER=%s" % ver)
runmode = NSUserDefaults.standardUserDefaults().stringForKey_("mode") or \
os.environ.get("ManagedSoftwareUpdateMode")