From 2126bb57636e7b9ec0cf182190eb26911d9022b8 Mon Sep 17 00:00:00 2001 From: Justin McWilliams Date: Fri, 5 Aug 2011 15:50:08 +0000 Subject: [PATCH] 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 --- code/Managed Software Update/MSUAppDelegate.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/Managed Software Update/MSUAppDelegate.py b/code/Managed Software Update/MSUAppDelegate.py index ab45176a..a33b748e 100644 --- a/code/Managed Software Update/MSUAppDelegate.py +++ b/code/Managed Software Update/MSUAppDelegate.py @@ -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")