Commit Graph

584 Commits

Author SHA1 Message Date
Greg Neagle
7ab92fa3cc Changes to simplify processing logic and allow items that are in both managed_updates and optional_installs to be removed by the user.
git-svn-id: http://munki.googlecode.com/svn/trunk@933 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-29 21:33:03 +00:00
Greg Neagle
1136569854 Simplify the logic in appleSoftwareUpdatesAvailable() when suppresscheck is True.
git-svn-id: http://munki.googlecode.com/svn/trunk@932 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-29 18:23:35 +00:00
Rob Middleton
6ee6a33e96 pylint: bug in munkicommon.format_time, indentation fixes
git-svn-id: http://munki.googlecode.com/svn/trunk@931 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-27 10:10:27 +00:00
Rob Middleton
e55faec0aa fix to r924: on suppresscheck still need to consider whether cached apple updates are available.
git-svn-id: http://munki.googlecode.com/svn/trunk@930 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-27 05:54:57 +00:00
Rob Middleton
1ff5d190fa applesoftwareupdatesonly is not global / not in this scope
git-svn-id: http://munki.googlecode.com/svn/trunk@929 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-26 08:52:00 +00:00
Rob Middleton
32b7e37066 Fix to functionality added in r818. On GUI auto run, do forced installs, then prompt user if either munki updates still availalbe, or any apple updates available.
git-svn-id: http://munki.googlecode.com/svn/trunk@928 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-25 02:03:29 +00:00
Greg Neagle
ece16bfac6 Make sure uninstall script is removed regardless of success or failure.
git-svn-id: http://munki.googlecode.com/svn/trunk@927 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-23 19:21:11 +00:00
Greg Neagle
337bb70150 More changes to Apple Software Update logic: if /Library/Updates/index.plist exists, we check values from /Library/Preferences/com.apple.SoftwareUpdate.plist -- LastResultCode and LastSuccessfulDate --to attempt to determine if index.plist is still valid, or if it may be stale.
git-svn-id: http://munki.googlecode.com/svn/trunk@926 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-23 18:38:33 +00:00
Greg Neagle
f790b71aea Add support for uninstall scripts embedded into pkginfo.
git-svn-id: http://munki.googlecode.com/svn/trunk@925 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-22 20:00:15 +00:00
Greg Neagle
a77c1329fb Simplified check for available Apple Software Updates to avoid presenting stale info to user.
git-svn-id: http://munki.googlecode.com/svn/trunk@924 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-22 18:13:04 +00:00
Greg Neagle
f575542905 Make sure we return false if user clicks the stop button while building the package database under Snow Leopard
git-svn-id: http://munki.googlecode.com/svn/trunk@923 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-21 00:32:12 +00:00
Greg Neagle
5be8b5ed84 If running a preflight script, call munkicommon.display_status so we tickle the munkistatus socket before it times out.
git-svn-id: http://munki.googlecode.com/svn/trunk@922 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-18 22:25:00 +00:00
Justin McWilliams
e190a2e9d5 Make all munkicommon.display_* methods accept a message and optional arguments
to concatenate to the message (using Python concat ala logging.* methods); drop unicode chars.

Fix problem (line 338 of updatecheck.py) where attempting to string-concat
unicode characters before sending to munkicommon.display_debug1() causes
UnicodeDecodeError.



git-svn-id: http://munki.googlecode.com/svn/trunk@921 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-18 21:03:01 +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
01bbf73ef2 Typo fix in updatecheck.py;
munkicommon - in display_warning and display_error, make sure it is a string that is appended to report['Warnings'] or report['Errors']

git-svn-id: http://munki.googlecode.com/svn/trunk@919 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-18 16:38:44 +00:00
Greg Neagle
3a18a9fd9e installer.py: account for case where no valid installer item is found on a disk image
updatecheck.py: provide more feedback when pkg items are rejected due to incompatible os or architecture.

git-svn-id: http://munki.googlecode.com/svn/trunk@918 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-17 21:57:21 +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
a7cc6e5457 Alter debug output when comparing OS version and architecture.
git-svn-id: http://munki.googlecode.com/svn/trunk@915 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-15 18:40:16 +00:00
Greg Neagle
149715226a installs/removals that are skipped during forced_* operations are rewritten to InstallInfo.plist so they can be done with user approval. installer items in /Library/Managed Installs/Cache/ are not removed if needed by skipped installs.
git-svn-id: http://munki.googlecode.com/svn/trunk@912 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-12 19:20:04 +00:00
MagerValp
33ffe3bffb Handle installer -query failing when makepkginfo analyzes a pkg on a network volume. Assumes that the charset is UTF-8, which probably needs to be fixed.
git-svn-id: http://munki.googlecode.com/svn/trunk@911 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-12 15:05:34 +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
Greg Neagle
74f5ce6d50 installer.py: consider list of installs for blocking applications only if no 'blocking_applications' key in pkginfo.
git-svn-id: http://munki.googlecode.com/svn/trunk@909 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-11 23:27:13 +00:00
Greg Neagle
cb4cff3c1e Fix for edge case where item is in SelfServeManifest to be installed, but in another manifest for removal. Previously, item would be uninstalled, then reinstalled, then uninstalled... Now it's uninstalled and the entry in SelfServeManifest is ignored.
git-svn-id: http://munki.googlecode.com/svn/trunk@908 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-11 22:24:39 +00:00
Greg Neagle
9f3f02d879 Faster, simpler method of determining if an app is running for use with blocking_applications; this also finds running Carbon/CFMApp applications...
git-svn-id: http://munki.googlecode.com/svn/trunk@907 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-11 00:38:40 +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
87036833e1 Added support for blocking_applications that cause a forced_install or forced_uninstall to be skipped if any application in the list is running.
git-svn-id: http://munki.googlecode.com/svn/trunk@898 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-10 01:00:44 +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
Justin McWilliams
d13aa8215d MSU.app:
- Remove the hardcoded setTitle_() call in MSUStatusWindowController.py; the window title defined in English.lproj/MainMenu.xib will be used by default. 


git-svn-id: http://munki.googlecode.com/svn/trunk@895 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-08 19:46:07 +00:00
Greg Neagle
849c79d041 Print better error messages when repo path is missing expected directories.
git-svn-id: http://munki.googlecode.com/svn/trunk@894 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-08 17:39:28 +00:00
Greg Neagle
486af91aa5 Use cp -pR when copying from a disk image to preserve creation and modification times, etc. If user, group or mode are not specified, default to "root", "admin", and "o-w" respectively.
git-svn-id: http://munki.googlecode.com/svn/trunk@893 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-08 17:36:54 +00:00
Greg Neagle
6334f35c6f Revert to Python pre-2.6 try/except format, since the new 2.6+ format breaks under Leopard, which uses Python 2.5.x by default.
git-svn-id: http://munki.googlecode.com/svn/trunk@892 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-06 19:28:47 +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
fbeaadbe48 Change shebang to use installed Python, not environment's Python.
git-svn-id: http://munki.googlecode.com/svn/trunk@887 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-03 00:03:04 +00:00
John Randolph
f4dc95a10d Add --ciphers HIGH to limit curl ssl ciphers usage
as discussed previously in 
http://code.google.com/p/munki/issues/detail?id=40



git-svn-id: http://munki.googlecode.com/svn/trunk@886 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-11-02 21:33:40 +00:00
Greg Neagle
595cc334cd Fix for unicode characters in pkg name or description
git-svn-id: http://munki.googlecode.com/svn/trunk@885 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-29 21:17:48 +00:00
MagerValp
1b7fb2eaa4 Added uninstall script.
git-svn-id: http://munki.googlecode.com/svn/trunk@884 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-28 22:20:16 +00:00
MagerValp
d68f837aff Added script for creating a metapackage distribution of munki.
git-svn-id: http://munki.googlecode.com/svn/trunk@883 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-28 22:19:18 +00:00
Greg Neagle
3db9b52cda Minor docstring and output tweaks.
git-svn-id: http://munki.googlecode.com/svn/trunk@882 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-28 18:59:57 +00:00
Greg Neagle
6045ae8516 munkiimport now optionally runs makecatalogs after importing an installer item
git-svn-id: http://munki.googlecode.com/svn/trunk@879 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-27 23:57:09 +00:00
Greg Neagle
4c4f34d064 makePkgInfo() now uses the makepkginfo in the same directory as munkiimport if it exists.
git-svn-id: http://munki.googlecode.com/svn/trunk@878 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-27 22:05:58 +00:00
Greg Neagle
0ed9cb744d Better handle the case where the install item path is in repo/pkgs/.
git-svn-id: http://munki.googlecode.com/svn/trunk@877 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-27 21:58:08 +00:00
Greg Neagle
7233ea384c Fix for downloading uninstaller items as supported for Adobe CS4 uninstalls. This was accidentally broken during the optimization of package integrity checking (so it was my fault, not Justin's!)
git-svn-id: http://munki.googlecode.com/svn/trunk@875 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-27 20:38:11 +00:00
Greg Neagle
ab2118c3ed Additional debugging messages in updatecheck; record items that are managed_updates to avoid items disappearing from the optional_installs list if they are also in managed_updates.
git-svn-id: http://munki.googlecode.com/svn/trunk@874 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-26 23:45:03 +00:00
Greg Neagle
aa14ee03a6 Fix copy of svnrev to tmp root /usr/local/munki/munkilib/svnversion
git-svn-id: http://munki.googlecode.com/svn/trunk@873 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-26 23:43:28 +00:00
Greg Neagle
7e9f255085 Fixed idle check logic when running in 'checkandinstallatstartup' mode.
git-svn-id: http://munki.googlecode.com/svn/trunk@872 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-26 20:38:27 +00:00
Greg Neagle
fa6a848625 Added Run Script build phase to MSU.app project so that SVN version number gets appended to the version number and also set as CFBundleVersion.
git-svn-id: http://munki.googlecode.com/svn/trunk@871 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-26 20:29:22 +00:00
MagerValp
54a32d304d Added dummy svnversion file so that munkitools run straight from svn returns "0.7.0.svn.0".
git-svn-id: http://munki.googlecode.com/svn/trunk@870 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-26 20:06:03 +00:00
Greg Neagle
b901118418 Fix doc string formatting.
Re-check idle time when running in "checkandinstallatstartup" mode so we maximize our chances of getting all the updates done when bootstrapping.

git-svn-id: http://munki.googlecode.com/svn/trunk@869 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-26 18:52:06 +00:00
MagerValp
19dad2b120 Moved /usr/local/munki/svnversion creation into temporary package root.
git-svn-id: http://munki.googlecode.com/svn/trunk@868 a4e17f2e-e282-11dd-95e1-755cbddbdd66
2010-10-26 17:30:48 +00:00