Greg Neagle
98de6685cc
Merge of https://code.google.com/r/theheig-conditionals/ apple-update-metadata: Adds support for Munki-style metadata to Apple updates.
2013-02-19 17:09:40 -08:00
Heig Gregorian
53fc136d28
unattended_install in metadata no longer applied if a RestartAction exists (in original item or metadata); unattended Apple updates are skipped if a blocking application is running; installlist, holding Apple update installation results, only holds items which are eligible for unattended installation
...
Mostly, this commit involves improving upon expected functionality of
an unattend Apple update installation.
Munki performs a "suppressed" Apple software update check post
installation run if a GUI user is logged in such that the user will be
prompted to install any remaining updates. This is inline with munki's
behavior for munki packages.
blocking_applications can now accept items which are full paths in case
an admin wishes to be specific regarding the location of a running,
blocking application and/or executable.
Also of note is a fix for previously broken blocking_application
checking for Apple updates, both in MSU and managaedsoftwareupdate.
2013-02-19 13:32:09 -08:00
Heig Gregorian
cd3c69b5a2
'unattended_install' and 'force_install_after_date' actions for Apple update are honored. Overall, functions were add/modified to support this effort.
2013-02-15 18:34:28 -08:00
Greg Neagle
d2eee5e268
When adding or removing Optional Software from the list of current installs, suppress Apple Update checks.
2013-02-14 16:23:06 -08:00
Greg Neagle
b80430753b
Changes to allow Munki to check for and install Apple Software Update items in the same session as normal Munki updates.
2013-02-11 08:37:39 -08:00
Greg Neagle
4b71ace130
Updated copyright info on all files with copyright info.
2013-01-28 11:55:09 -08:00
Justin McWilliams
da0891dd9b
Missing comma introduced in commit 15e082ae45 causes MSU to crash
2012-12-18 12:08:28 -05:00
Justin McWilliams
15e082ae45
s/GuiCacheAgeSecs/CheckResultsCacheSeconds/ per a discussion with gneagle.
...
Also, add to default_prefs, even though default is None/unset, a rrmiddleton pointed out this documents which prefs MSU might use.
2012-12-17 10:52:13 -05:00
Rob Middleton
bce1fa42f9
Fix issue 169. Pref AppleSoftwareUpdatesOnly needs to be understood by MSU.app not just managedsoftwareupdate.
2012-11-13 11:50:16 +11:00
Greg Neagle
cc0ac78964
When matching blocking_applications against running processes, do not match executables inside a bundle, but not in Contents/MacOS.
2012-06-25 15:00:48 -07: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
ac9141125d
Add getPowerInfo() to munki.py for use by MSU.app
2011-12-05 11:16:12 -08:00
Greg Neagle
239663353f
Fix issues in munki.py when writing trigger files; edits to launchdaemons so managedsoftwareupdate-loginwindow runs only when a trigger file is present
2011-09-14 15:31:42 -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
98ac900592
Update discardTimeZoneFromDate() function in updatecheck.py to match that in MSU.app's munki.py. Fixes issue with Lion caused by differing string representations of NSDates between Lion and Snow Leopard.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@1294 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-16 02:11:15 +00:00
Greg Neagle
51b04c7548
Cleaner version of discardTimeZoneFromDate(the_date)
...
git-svn-id: http://munki.googlecode.com/svn/trunk@1293 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-15 21:42:47 +00:00
Greg Neagle
92eed69394
Fix for Lion: calculating the local time for force_install_after_date
...
git-svn-id: http://munki.googlecode.com/svn/trunk@1292 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-08-15 15:51:16 +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
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
Greg Neagle
685314da25
Fix so PyObjC __NSDate and __CFDate objects are converted to strings (previously we only did __NSCFDate) . Need to revisit date handling to/from CFPreferences...
...
git-svn-id: http://munki.googlecode.com/svn/trunk@1046 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2011-02-25 00:18:56 +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
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
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
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
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
5863306955
Bug fix for readSelfServiceManifest()
...
git-svn-id: http://munki.googlecode.com/svn/trunk@706 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-09-01 18:39:07 +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
f8cf2fb9d0
MSU.app: munki.py cleanup to make pylint happier.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@691 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-08-26 15:03:17 +00:00
Greg Neagle
92942c7d17
Managed Software Update version 3.0.3: status window is now resizable, and the stop button no longer can be activated via the space bar. Removed commented-out code in munki.py.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@690 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-08-26 14:36:38 +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
Greg Neagle
49246c448c
Managed Software Update 2.0.2: bounces icon in the Dock to request user attention if there are updates but the app is not active; changes in logic around checking for updates.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@531 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-04-27 20:47:42 +00:00
Greg Neagle
4b6606d76a
in getAppleUpdates(), check prefs['InstallAppleSoftwareUpdates'] to handle the case where munki has found AppleUpdates, but admin has later set InstallAppleSoftwareUpdates to False.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@519 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-03-29 17:18:09 +00:00
Greg Neagle
92667c9a9b
Now uses SBApplication.applicationWithURL_ to get the _MunkiStatusApp object if SBApplication.applicationWithBundleIdentifier_ fails, which it might if MunkiStatus has never been launched on that particular machine.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@496 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-03-04 22:48:02 +00:00
Greg Neagle
7d5aeee811
Change to logic in updateInProgress() to minimize the number of calls to SBApplication.applicationWithBundleIdentifier_, which prints annoying warnings to the log.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@480 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-03-02 21:22:54 +00:00
Greg Neagle
9b212c9825
Wait a bit longer before giving up when checking to see if an updatecheck was successfully kicked off.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@476 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-23 22:06:43 +00:00
Greg Neagle
33bedf4a74
Altered logic when waiting to see if we were successful in starting an update check.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@466 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-19 01:05:13 +00:00
Greg Neagle
934f1329bc
New PyObjC-based version of Managed Software Update.app.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@458 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-17 18:39:22 +00:00