Commit Graph

40 Commits

Author SHA1 Message Date
Greg Neagle
cfb4a45134 In MSU.app, if removal detail is suppressed, and a removal item requires a logout, make sure MSU.app also requires a logout. 2012-10-05 08:22:43 -07:00
Greg Neagle
0ed46a42ee Get rid of menubar flash when MSU.app runs over the loginwindow; tweaks to appearance over Lion loginwindow 2012-06-08 15:05:05 -07:00
Greg Neagle
d7236fce3a Fix for items marked for forced_install_after_date that also require logout or restart 2012-04-03 09:19:15 -07:00
Greg Neagle
2be63ee00a Don't display on battery power warning unless charge is less than 50%. Reverse buttons in warning dialog to match those in Apple Software Update. 2011-12-07 14:00:38 -08:00
Greg Neagle
69419d939b MSU.app now displays a warning if user chooses to update while on battery power. 2011-12-06 14:29:53 -08:00
Greg Neagle
736f722276 MSU: warn user if on battery power when choosing to update 2011-12-06 14:00:08 -08:00
Justin McWilliams
95f162e750 Don't log repetitive lines when running softwareupdate; only log if the stdout has changed since the last loop iteration.
This should change things like:

Nov 16 13:12:03 Registering updated applications…
...
Nov 16 13:12:19 Registering updated applications…
Nov 16 13:12:19 Registering updated applications…
Nov 16 13:12:20 Registering updated applications…
Nov 16 13:12:20 Registering updated applications…
Nov 16 13:12:21 Registering updated applications…
Nov 16 13:12:21 Registering updated applications…
Nov 16 13:12:22 Registering updated applications…
Nov 16 13:12:22 Writing package receipts…
Nov 16 13:12:23 Writing package receipts…
Nov 16 13:12:23 Writing package receipts…
Nov 16 13:12:24 Writing package receipts…
Nov 16 13:12:24 Writing package receipts…
Nov 16 13:12:25 Writing package receipts…
Nov 16 13:12:25 Writing package receipts…
...
Nov 16 13:12:59 Writing package receipts…

To simply:

Nov 16 13:12:03 Registering updated applications…
Nov 16 13:12:22 Writing package receipts…
2011-11-17 14:30:55 -05:00
Justin McWilliams
19fbb4ed56 Case-insensitive sort MSU GUI update list, preferring forced install items, then preferring display_name to name. 2011-11-17 12:50:16 -05:00
Greg Neagle
833d509c94 Fix - send update notification to MSU.app after an unattended install; fix method signature for utils.runExternalScript 2011-09-14 16:43:50 -07:00
Greg Neagle
765bf5094f Removed new MSU launch trigger file; combining with existing trigger 2011-09-14 10:39:31 -07:00
Rob Middleton
cb5e0076d0 Speed launch of MSU.app status mode to cover the login window following logout install actions. 2011-09-07 21:23:48 +10:00
Greg Neagle
d8f947e0d1 Fix so restart/logout required icons show next to appropriate items in MSU.app; this was broken by the code that tried to display the exclamation icon for items with force_install_after_date
git-svn-id: http://munki.googlecode.com/svn/trunk@1291 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-13 02:18:36 +00:00
Greg Neagle
ce5a36dcd1 Further cleanup of the endSheet methods to explicitly check for NSAlertDefaultReturn, NSAlertAlternateReturn, NSAlertOtherReturn returncodes; avoiding potential issues should an alert sheet be closed with NSApp.endSheet_()
git-svn-id: http://munki.googlecode.com/svn/trunk@1278 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-08 16:33:53 +00:00
Greg Neagle
bdd9ca8b0e Fix for issue where a (newer) forced logout warning replaces a currently displayed forced logout warning in MSU.app
git-svn-id: http://munki.googlecode.com/svn/trunk@1275 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-05 23:18:28 +00:00
Justin McWilliams
2126bb5763 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
2011-08-05 15:50:08 +00:00
Justin McWilliams
d03b2ba11f Merging forced_install_after_date branch to trunk.
This adds Force Install Notifications support to the MSU GUI, and logouthelper support to managedsoftwareupdate/launchd. Documentation on using the pkginfo force_install_after_date key to come....

This merge also includes localization fixes and on-the-fly updating of the MSU GUI when managedsoftwareupdate runs in the background while the GUI is open, changing InstallInfo.

With this merge, the Munki version is increased to 0.8.0 and MSU GUI version to 3.2.


git-svn-id: http://munki.googlecode.com/svn/trunk@1270 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-04 19:23:19 +00:00
Greg Neagle
916b67b153 Add code to prevent auto-relaunch of MSU.app after logout/login or restart on Lion.
git-svn-id: http://munki.googlecode.com/svn/trunk@1241 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-07-20 15:17:04 +00:00
John Randolph
24d6d1a0e0 merge /branches/msu_logging in
see issue 62 &
changes 1064, 1065, 1070 for other discussion



git-svn-id: http://munki.googlecode.com/svn/trunk@1081 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-03-22 17:04:30 +00:00
Justin McWilliams
dc3c1203e8 Updating wording for installs that require logout or restart, to make it clear that there may be a delay before MSU is displayed at the login window.
git-svn-id: http://munki.googlecode.com/svn/trunk@1029 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-02-15 20:11:41 +00:00
Greg Neagle
a853f78c9f Update copyright dates across the board.
git-svn-id: http://munki.googlecode.com/svn/trunk@1010 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-01-25 18:22:14 +00:00
Rob Middleton
1e434697aa Fix issue 56. MSU.app needs to reload preferences from disk after returning from a call to managedsoftwareupdate.
git-svn-id: http://munki.googlecode.com/svn/trunk@1001 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-01-16 04:52:30 +00:00
Greg Neagle
9ebaa7ce5f Change to Managed Software Update.app so it is more aggressive about checking for updates when manually launched.
git-svn-id: http://munki.googlecode.com/svn/trunk@996 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-01-14 19:19:19 +00:00
Greg Neagle
681acae624 Add MCX support, based on code contribution from Dan Roque.
Other minor clean-ups.

git-svn-id: http://munki.googlecode.com/svn/trunk@973 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-12-13 20:11:22 +00:00
Greg Neagle
d6f9c9286b Code changes to avoid the indexError: NSRangeException error when returning from an update check.
git-svn-id: http://munki.googlecode.com/svn/trunk@943 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-12-01 01:58:31 +00:00
Greg Neagle
c1c9ce2ac7 More changes to enable localization
git-svn-id: http://munki.googlecode.com/svn/trunk@920 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-18 18:21:13 +00:00
Greg Neagle
eae0b1b19f More NSLocalizedString() inserts.
git-svn-id: http://munki.googlecode.com/svn/trunk@917 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-16 19:39:51 +00:00
Greg Neagle
16210ce780 First pass at adding support for localization to Managed Software Update.app; wrapped UI strings with NSLocalizedString().
git-svn-id: http://munki.googlecode.com/svn/trunk@916 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-16 18:27:03 +00:00
Greg Neagle
e4bc10aedd Managed Software Update.app now warns if any blocking apps are running if the user chooses to update without logging out.
git-svn-id: http://munki.googlecode.com/svn/trunk@910 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-12 00:35:46 +00:00
John Randolph
44d2ab28ab fix typo in MSUAppDelegate
prevent curl from using non-authenticated anon DH cipher types, 
  e.g. TLS_DH_anon_WITH_AES_256_CBC_SHA

(seems that curl --ciphers HIGH selects high # bit ciphers, but
not necessarily only secure ones)



git-svn-id: http://munki.googlecode.com/svn/trunk@899 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-10 19:27:54 +00:00
Greg Neagle
2e43d20cfb Removes activation delay on "Update now" button; also removes default status from "Update now" so that it's less likely to be activated by accident.
git-svn-id: http://munki.googlecode.com/svn/trunk@896 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-08 23:56:26 +00:00
John Randolph
a3ef0f6ebc when MSU pops up for updates, only enable the "Update now" button after 4
seconds.
         
this lessens a problem where users may be interrupted by MSU popping up, be
caught off guard while typing and accidentally press enter on the default
"Update now" button



git-svn-id: http://munki.googlecode.com/svn/trunk@888 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-05 00:21:04 +00:00
Greg Neagle
9b7e165f53 Another dumb syntax error fix
git-svn-id: http://munki.googlecode.com/svn/trunk@841 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-21 22:37:20 +00:00
Greg Neagle
3d41ec7430 Fix for displaying names of items to be removed when ManagedInstalls.plist's ShowRemovalDetail is True
git-svn-id: http://munki.googlecode.com/svn/trunk@840 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-21 20:56:19 +00:00
Justin McWilliams
12447c8e74 Managed Software Update/munki.py:trimVersionString() enhancement.
Instead of stripping x parts off the tuple, simply trim all lone trailing 0's from the version.

    Examples:
      10.0.0.0 -> 10.0
      10.0.0.1 -> 10.0.0.1
      10.0.0.1.0.0 -> 10.0.0.1
      10.0.0-abc1 -> 10.0.0-abc1
      10.0.0-abc1.0 -> 10.0.0-abc1



git-svn-id: http://munki.googlecode.com/svn/trunk@793 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-14 17:39:57 +00:00
Greg Neagle
f07e01655b Fix for incorrectly initialized KVO arrays in Managed Software Update.app; bumped MSU.app to version 3.0.6; bumped munkitools version to 0.6.0.757.0.
git-svn-id: http://munki.googlecode.com/svn/trunk@758 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-09-21 23:30:06 +00:00
Greg Neagle
0b667a61b2 Moved getconsoleusers to munki.py; there were copies in both MSUAppDelegate.py and MSUStatusWindowController.py (this is a leftover from when Managed Software Update and MunkiStatus were separate apps).
Removed readPlist(filepath) from MSUStatusWindowController; it now uses the equivalent function from FoundationPlist.

Other minor cleanups.

git-svn-id: http://munki.googlecode.com/svn/trunk@739 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-09-09 23:37:53 +00:00
Greg Neagle
d88121a005 Bump version to 3.0.5
Display installed size for Apple Software Updates.


git-svn-id: http://munki.googlecode.com/svn/trunk@731 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-09-07 23:07:01 +00:00
Greg Neagle
16487dac1c Changes for optional installs. Bump version to 3.0.4
git-svn-id: http://munki.googlecode.com/svn/trunk@703 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-09-01 16:59:08 +00:00
Greg Neagle
8cf50e6b51 Fixed handling of plain text descriptions so that line breaks and other whitespace is displayed properly.
Fixed bogus "You software is up to date" alert when there were Apple Software Updates to install.

git-svn-id: http://munki.googlecode.com/svn/trunk@600 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-07-22 22:38:52 +00:00
Greg Neagle
117ef8d23f Merged MunkiStatus.app and Managed Software Update.app. Added UI for Optional Software.
git-svn-id: http://munki.googlecode.com/svn/trunk@579 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-07-21 02:52:21 +00:00