Commit Graph

248 Commits

Author SHA1 Message Date
Greg Neagle
436f786cd8 copyAppFromDMG() now uses munkicommon.isApplication() instead of just looking for items ending with ".app"
git-svn-id: http://munki.googlecode.com/svn/trunk@408 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-16 17:57:44 +00:00
Greg Neagle
ffdf1c1ad0 Using munkicommon.getVersionString() instead of directly reading CFBundleShortVersionString so we consistently handle edge cases.
Tweaked enoughDiskSpace() to account for items downloaded but not yet installed.

git-svn-id: http://munki.googlecode.com/svn/trunk@407 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-16 17:56:04 +00:00
Greg Neagle
d355c27e9f Using munkicommon.getVersionString() instead of directly reading CFBundleShortVersionString to work around edge cases consistently.
Tweaks in finding apps for appdmg

git-svn-id: http://munki.googlecode.com/svn/trunk@406 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-16 17:50:30 +00:00
Greg Neagle
a747271859 Some changes to better handle Fast User Switching
git-svn-id: http://munki.googlecode.com/svn/trunk@405 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-16 17:48:38 +00:00
Greg Neagle
3e9dc00c21 Changed isApplication() to consider CFBundlePackageType to prevent false positives on non-application bundles.
New getVersionString() function to normalize how we get version info from a Info.plist.


git-svn-id: http://munki.googlecode.com/svn/trunk@404 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-16 01:16:17 +00:00
Greg Neagle
bb603d9405 ManagedSoftwareUpdate.app: Fixed positioning of "Restart required/Logout required" info field when the main window is resized.
Bumped version number.

git-svn-id: http://munki.googlecode.com/svn/trunk@392 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-04 01:07:57 +00:00
Greg Neagle
06a6d9c243 Bumping version to 0.4.8 for next release.
git-svn-id: http://munki.googlecode.com/svn/trunk@391 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-04 00:10:04 +00:00
Greg Neagle
d561d24f75 Fixed issue with makepkginfo when generating "installs" items with no path to an installer item
git-svn-id: http://munki.googlecode.com/svn/trunk@390 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-03 00:03:38 +00:00
Greg Neagle
5d88e0f2e1 Changed "requires" informational message to display_detail level.
git-svn-id: http://munki.googlecode.com/svn/trunk@389 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-03 00:02:52 +00:00
Greg Neagle
7797f4f30a Fixed issue with multiple pkg installs from a single disk image
git-svn-id: http://munki.googlecode.com/svn/trunk@388 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-03 00:02:01 +00:00
Greg Neagle
e8c33ce5fd Version changed to 0.4.7
Added default value manualcheck=False to notifyUserOfUpdates() in managedsoftwareupdate.

git-svn-id: http://munki.googlecode.com/svn/trunk@387 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-02 00:03:21 +00:00
Greg Neagle
931feef795 Added new flag: --installwithnologout to be used by launchd Launch Daemon when a user kicks off an install session without logging out. No new functionality, just better bookkeeping.
git-svn-id: http://munki.googlecode.com/svn/trunk@385 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-25 19:56:03 +00:00
Greg Neagle
d6702aa518 In copyAppFromDMG, added a check for com.apple.quarantine extended attribute before trying to remove them.
Other minor formatting changes.

git-svn-id: http://munki.googlecode.com/svn/trunk@384 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-25 19:54:39 +00:00
Greg Neagle
af26f2730f MunkiStatus.app:
Bumped version to 2.0.3
Removed NSLog("Application will terminate.") message that went to system.log every time it quit.


git-svn-id: http://munki.googlecode.com/svn/trunk@383 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-25 19:52:45 +00:00
Greg Neagle
844054c57b Fixed restart problem introduced with the try/except block around installer.run() in managedsoftwareupdate
git-svn-id: http://munki.googlecode.com/svn/trunk@382 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-24 23:46:05 +00:00
Greg Neagle
1d31cb6267 Added support for a new "autoremove" key in package info. Packages with autoremove set to True will be automatically removed if they are not in the managed_installs list of the primary manifest or any included manifest.
git-svn-id: http://munki.googlecode.com/svn/trunk@381 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-24 21:14:53 +00:00
Greg Neagle
e0b27a8841 Added try/except around calls to updatecheck.check, installer.run, and appleupdates.installAppleUpdates so we can capture unhandled exceptions and report/log them.
git-svn-id: http://munki.googlecode.com/svn/trunk@380 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-23 17:05:51 +00:00
Greg Neagle
90ceeeaa8e Added code to removepackages.py to deal with evil packages that put receipts under /Library/Receipts, even in Snow Leopard.
git-svn-id: http://munki.googlecode.com/svn/trunk@379 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-23 17:01:34 +00:00
Greg Neagle
c93fb32e7a Changed timing of recordUpdateCheckResult() so Managed Software Update.app would display an appropriate message if there were no munki updates and Apple's Software Update was also checked.
git-svn-id: http://munki.googlecode.com/svn/trunk@378 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-20 18:35:31 +00:00
Greg Neagle
c51bff7647 Fix when looking for install item in mounted disk image.
git-svn-id: http://munki.googlecode.com/svn/trunk@376 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-19 03:27:19 +00:00
Greg Neagle
3a9ee38de9 Changed logic around Apple Updates:
if munki updates are available, they are applied, and Apple Updates are ignored.
	Apple Updates are presented and acted upon only if InstallAppleSoftwareUpdates preference is set and there are no available munki updates. 

git-svn-id: http://munki.googlecode.com/svn/trunk@375 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-19 03:26:25 +00:00
Greg Neagle
47cbc58a26 Added function to clear Apple Update info.
git-svn-id: http://munki.googlecode.com/svn/trunk@374 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-19 03:23:36 +00:00
Greg Neagle
c1ea0d202d Exception/error handling changes
git-svn-id: http://munki.googlecode.com/svn/trunk@373 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-19 03:22:52 +00:00
Greg Neagle
37fb8225f9 Comment change
git-svn-id: http://munki.googlecode.com/svn/trunk@372 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-19 03:22:15 +00:00
Greg Neagle
246d0f9be5 updatecheck.py: added support for "RecommendRestart" RestartAction
git-svn-id: http://munki.googlecode.com/svn/trunk@371 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-19 03:21:50 +00:00
Greg Neagle
9bc637d706 Fixed use of package_path key in pkginfo.
git-svn-id: http://munki.googlecode.com/svn/trunk@370 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-19 03:20:07 +00:00
Greg Neagle
612a1025b1 Changed the Apple Update logic to match that of managesoftwareupdate.
Added support for "RecommendRestart" and "RequireLogout" RestartActions.
Added support for InstallRequiresLogout preference in ManagedInstalls.plist so admin can require users to logout for all updates.

git-svn-id: http://munki.googlecode.com/svn/trunk@369 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-19 03:18:50 +00:00
Greg Neagle
9322485665 Added support for a 'package_path' key in pkg info to indicate a specific package on a disk image containing multiple packages, or where the package to be installed is not at the root of the disk image.
For Adobe packages, 'package_path' now replaces 'adobe_package_name' with the same functionality.

git-svn-id: http://munki.googlecode.com/svn/trunk@368 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 17:46:56 +00:00
Greg Neagle
d50290939f Exception handling cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@367 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 06:10:19 +00:00
Greg Neagle
793b48baaf Reformatted help strings
git-svn-id: http://munki.googlecode.com/svn/trunk@366 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 05:57:05 +00:00
Greg Neagle
27728a7441 Reformatted option help strings
git-svn-id: http://munki.googlecode.com/svn/trunk@365 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 05:54:57 +00:00
Greg Neagle
5a2bf9e3d8 Exception handling cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@364 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 05:53:11 +00:00
Greg Neagle
f712554195 Cleaned up exception handling
git-svn-id: http://munki.googlecode.com/svn/trunk@363 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 05:47:43 +00:00
Greg Neagle
4099899d37 Cleaned up exception handling.
git-svn-id: http://munki.googlecode.com/svn/trunk@362 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 05:44:30 +00:00
Greg Neagle
ebf9088150 Cleanup exception handling.
git-svn-id: http://munki.googlecode.com/svn/trunk@361 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 05:32:36 +00:00
Greg Neagle
79148660d9 Replaced generic except: clauses with more specific.
git-svn-id: http://munki.googlecode.com/svn/trunk@360 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 05:28:57 +00:00
Greg Neagle
451bb6ca10 Fixed exception tuple,
git-svn-id: http://munki.googlecode.com/svn/trunk@359 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 05:19:59 +00:00
Greg Neagle
fc7570449b Cleanup of exception handling
git-svn-id: http://munki.googlecode.com/svn/trunk@358 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 05:16:58 +00:00
Greg Neagle
0b55bf27ae Cleaned up exception handling
git-svn-id: http://munki.googlecode.com/svn/trunk@357 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 04:43:50 +00:00
Greg Neagle
827c4b5264 Cleaned up exception handling
git-svn-id: http://munki.googlecode.com/svn/trunk@356 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 04:39:24 +00:00
Greg Neagle
5ea46d211b PEP-8 line length cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@355 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 04:15:59 +00:00
Greg Neagle
5aa68dbe00 PEP-8 line length cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@354 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 04:14:13 +00:00
Greg Neagle
cdba90d75e PEP-8 cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@353 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 02:22:49 +00:00
Greg Neagle
3b7d335b04 More PEP-8 cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@352 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 02:03:05 +00:00
Greg Neagle
4456101d14 PEP-8 cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@351 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 01:45:04 +00:00
Greg Neagle
510ca09f0e More PEP-8 cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@350 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 01:43:13 +00:00
Greg Neagle
d34876af17 Line length cleanup ala PEP-8
git-svn-id: http://munki.googlecode.com/svn/trunk@349 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 01:39:16 +00:00
Greg Neagle
00f7ba39e5 PEP-8 line length cleanup. Wasn't sure how to break the sqlite3 commands, so left them alone.
git-svn-id: http://munki.googlecode.com/svn/trunk@348 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-18 00:04:54 +00:00
Greg Neagle
8e7811cea2 PEP-8 formatting cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@347 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-17 23:38:21 +00:00
Greg Neagle
893a0c8919 More PEP-8 cleanup
git-svn-id: http://munki.googlecode.com/svn/trunk@346 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-11-17 23:36:53 +00:00