Greg Neagle
ca16501573
Better handling of situations where MunkiStatus might go away in the middle of a session.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@470 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-23 00:22:51 +00:00
Greg Neagle
d6908fdd52
Fixed typos in adobeSetupError()
...
git-svn-id: http://munki.googlecode.com/svn/trunk@467 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-20 18:03:12 +00:00
Greg Neagle
7538a9190b
Fixed typo in comment; wrapped more of removeBundleRelocationInfo() in try/except blocks to avoid issues with really old package formats (like the Cisco VPN installer package!)
...
git-svn-id: http://munki.googlecode.com/svn/trunk@465 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-19 01:03:40 +00:00
Greg Neagle
f87d3b78e8
Removed some munkistatus workaround code.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@464 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-18 00:53:54 +00:00
Greg Neagle
1c1c8ab7a0
Fixed MunkiStatus wait-for-startup logic so initial messages to MunkiStatus don't get dropped.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@461 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-18 00:10:03 +00:00
Greg Neagle
eb43b858a3
Various cleanups: replaced use of dateutil.dateparse methods with NSDate methods, etc.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@459 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-17 18:42:10 +00:00
Greg Neagle
a4cf1dfb04
In Managed Software Update.app, replaced NSTextView that was used to display detail with a WebView.
...
appleupdate.py - parseDist() now returns HTML description without trying to convert it to plain text. This HTML description is displayed in Managed Software Update.app's new WebView.
git-svn-id: http://munki.googlecode.com/svn/trunk@456 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-10 18:26:44 +00:00
Greg Neagle
6b3c47e3e5
Changed evidenceIsInstalled() and processRemoval() logic to better handle non Apple package-installed items.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@455 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-10 18:24:20 +00:00
Greg Neagle
14c94e8f9f
Add a short sleep to the loop than waits for the other instance(s) of managedsoftwareupdate to exit.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@454 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-09 16:28:48 +00:00
Greg Neagle
dc234c3dc2
Shorten the sleep time before removing the trigger file when using launchd trigger file to launch MunkiStatus.app
...
git-svn-id: http://munki.googlecode.com/svn/trunk@453 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-08 23:19:30 +00:00
Greg Neagle
c6025b5500
managedsoftwareupdate: better handle the case where manaagedsoftwareupdate --auto is already running when a user invokes Managed Software Update.app
...
git-svn-id: http://munki.googlecode.com/svn/trunk@452 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-08 23:18:12 +00:00
Greg Neagle
57d60ad22f
launchapp now sleeps 10 seconds if it's called from a context other than the current GUI user to avoid launchd throttling.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@451 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-08 22:33:11 +00:00
Greg Neagle
e562922e6e
More com.googlecode.munki.munkistatus vs com.googlecode.munki.MunkiStatus cleanup
...
git-svn-id: http://munki.googlecode.com/svn/trunk@448 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-08 19:23:14 +00:00
Greg Neagle
5c128b5574
munkicommon: New currentGUIusers() function to get list of current GUI users
...
managedsoftwareupdate: makes use of munkicommon.currentGUIusers() to more accurately determine if anyone is logged in to the GUI (Fast User Switching aware)
git-svn-id: http://munki.googlecode.com/svn/trunk@445 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-06 00:55:06 +00:00
Greg Neagle
36e4d6e727
Stub code for the case where Fast User Switching is active, we're switched to the loginwindow with one or more users logged in, and we need to restart.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@443 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-05 23:00:29 +00:00
Greg Neagle
28d3f1596d
Added new launchapp tool to make sure MunkiStatus.app and Managed Software Update.app are launched only in the context of the current GUI user.
...
Updated LaunchAgents com.googlecode.munki.munkistatus.plist and com.googlecode.munki.ManagedSoftwareUpdate.plist to call the launchapp tool.
git-svn-id: http://munki.googlecode.com/svn/trunk@440 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-05 18:50:17 +00:00
Greg Neagle
e0d31bfbbf
Fixed stupid typo in code that removes the shadow file when it removes disk images after install.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@439 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-04 21:15:26 +00:00
Greg Neagle
7fa63d36ad
Version number bumps to get ready for 0.5.0 release
...
git-svn-id: http://munki.googlecode.com/svn/trunk@438 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-04 21:00:17 +00:00
Greg Neagle
47385bac22
Changes to use the new LaunchAgent mechanism to allow managedsoftwareupdate (running in the root context) to reliably launch Managed Software Update.app in the user's context.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@437 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-04 18:56:48 +00:00
Greg Neagle
2bb654567c
Fixed edge case in getVersionString() where package's Info.plist contains empty CFBundleShortVersionString or empty CFBundleVersion.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@435 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-03 20:20:16 +00:00
Greg Neagle
01180408a9
munkicommon.py/mountdmg() now has an option to mount dmgs with shadow files to allow read-write access to read-ony disk images.
...
installer.py now mounts disk images with -shadow option to enable the next change -
For bundle-style packages, installer.py/install() now attempts to remove any bundle relocation info to disable installer's bundle relocator. This should force items to install to their default locations.
git-svn-id: http://munki.googlecode.com/svn/trunk@434 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-03 18:14:16 +00:00
Greg Neagle
d895a4c106
Fixed typo in lookforUpdates function in updatecheck that could cause an unhandled exception.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@433 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-02-02 17:59:57 +00:00
Greg Neagle
bd83d5381c
Change to copyAppFromDMG() so that apps copied to /Applications are owned by root.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@432 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-01-13 16:27:58 +00:00
Greg Neagle
100ef1d783
Better Pythonized the getIdleSeconds() function.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@431 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-01-10 17:24:06 +00:00
Greg Neagle
1ce32d0d51
Minor output tweaks.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@430 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-01-10 16:47:58 +00:00
Greg Neagle
bf0cb48c5c
Bumped tools version to 0.4.9.
...
Changed munkistatus.py to follow Apple's recommendations and use a launchd LaunchAgent to launch MunkiStatus.app instead of using LaunchServices from a daemon.
git-svn-id: http://munki.googlecode.com/svn/trunk@419 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-01-06 00:37:18 +00:00
Greg Neagle
c1acf06795
Updated copyright info for 2010; added cleanup of launchd launch paths for runtype = "installwithnologout" and runtype = "manualcheck".
...
git-svn-id: http://munki.googlecode.com/svn/trunk@418 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-01-06 00:34:03 +00:00
Greg Neagle
6125f77293
Changes to support installation of Adobe Acrobat Pro 9 updates.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@415 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-24 20:27:33 +00:00
Greg Neagle
1fd7e22375
Added "Logout required" messages to the summary at the end of check()
...
Fixed logic when looking for uninstall info.
Make sure we have both a packageid and a version before we try to add a receipt to the catalog databate receipts table.
git-svn-id: http://munki.googlecode.com/svn/trunk@414 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-19 05:19:32 +00:00
Greg Neagle
5a7e380c55
In getAdobeSetupInfo(), now print payload info even if there's only one payload Payload info now includes AdobeCode, which can be useful for building Installs items.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@413 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-19 05:14:56 +00:00
Greg Neagle
68ab8e5c61
Added error message when we can't mount a disk image.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@412 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-19 05:11:31 +00:00
Greg Neagle
00e94f98c6
getVersionString() now handles another Adobe edge case, where CFBundleShortVersionString contains commas instead of periods:
...
"5,0,0," instead of "5.0.0"
git-svn-id: http://munki.googlecode.com/svn/trunk@411 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-16 20:25:15 +00:00
Greg Neagle
60de387e48
added check for munkicommon.munkistatusoutput in runAdobeInstallTool so we don't try to call MunkiStatus when not needed.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@410 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-16 18:43:51 +00:00
Greg Neagle
3a5c662ae8
Added '-a' flag to /usr/bin/open call.
...
git-svn-id: http://munki.googlecode.com/svn/trunk@409 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2009-12-16 17:58:49 +00:00
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
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
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