Commit Graph

700 Commits

Author SHA1 Message Date
Greg Neagle 97c670bab4 appleupdates.py now generates blocking_applications lists for Apple updates 2012-03-13 17:22:54 -07:00
Heig Gregorian b42bec7aef Improved print-out for 'Found' updates 2012-03-09 10:43:09 -08:00
Greg Neagle 866c31ecd6 Changes in how we look for updates that have a version number appended 2012-03-08 11:20:20 -08:00
Heig Gregorian 2fde9b96d7 Remove Conditions.plist once CONDITIONS has been populated and output CONDITIONS to ManagedInstallReport.plist 2012-03-05 11:12:55 -08:00
Heig Gregorian 0f79dfc985 Added some additional inline documentation 2012-03-05 10:21:15 -08:00
Heig Gregorian f02b78b78e Don't process directories within conditions directory. Fixed variable name misspelling 2012-03-05 08:45:17 -08:00
Heig Gregorian e2780c867e Validate plist before including in CONDITIONS dict 2012-03-05 08:13:21 -08:00
Heig Gregorian c6be815303 Removed changes to predicateEvaluatesAsTrue. Conditional scripts must now write output to ConditionalItems.plist which is then parsed to the CONDITIONS dict for inclusion into the INFO_OBJECT dict 2012-03-05 07:34:59 -08:00
Heig Gregorian afce440698 Initial commit for conditional items framework extension 2012-03-02 14:10:34 -08:00
Greg Neagle ba1238b452 Fix: forgot to replace plistlib.readPlistFromString with FoundationPlist.readPlistFromString when copying code from test environment. 2012-03-01 19:33:23 -08:00
Greg Neagle ee046b6dc9 ipv4_address is an available attribute for conditional_items; this attribute contains an array of active IPv4 addresses. A sample comparison might look like <string>ANY ipv4_address CONTAINS '192.168.161.'</string> 2012-03-01 17:06:58 -08:00
Greg Neagle 0cf1ad4089 Minor tweak when processing updates for items already installed and manifest specifies a version 2012-03-01 17:04:18 -08:00
Greg Neagle f97b63a9bf Better processing of requires and update_for items when names have versions appended. 2012-02-29 13:42:43 -08:00
Greg Neagle fd45dd6ece More changes to parsePkgRefs to better parse Apple distribution files 2012-02-24 10:07:11 -08:00
Greg Neagle 6bdd5a6782 Changes to several package-parsing methods in munkicommon.py to enable makepkginfo to get a more accurate list of receipts from Apple metapackages; examples are Xcode releases before 4.3 and the command_line_tools for Xcode 4.3 2012-02-23 10:32:38 -08:00
Justin McWilliams d20ea289d2 If an item is already in the cache, set download_speed to 0. Previously I just assumed this would always be the case, but I've seen download_installeritem() take 1-2 seconds on larger packages (presumably because of hashing?) 2012-02-16 11:28:39 -05:00
Greg Neagle 2a1cf963e4 Fix issue where managedsoftwareupdate --auto or --quiet would print percentage-done indicators to STDOUT when checking for Apple updates or when removing packages. 2012-02-15 15:17:09 -08:00
Greg Neagle 34ab750460 Changes to allow curl to follow redirects when retreiving an Apple sucatalog; this is needed to support Lion Server's Software Update service. 2012-02-14 16:51:34 -08:00
Greg Neagle 5489fb5dc3 updatecheck.py enoughDiskSpace() -- coerce all installed_size values to integers when calculating available disk space. Fix for broken pkginfo editing that saved installed_size as string instead of integer. 2012-02-14 09:41:08 -08:00
Justin McWilliams d8e4c6cb15 Ignore calculating download speeds for downloads under 1 MB so small files don't skew avg speeds, as *sustained* download speeds are more helpful. 2012-02-13 10:52:53 -05:00
Justin McWilliams 89e2ab8b81 Move getPIDforProcessName() out of munkicommon and into utils, so it can be
used in modules that munkicommon also imports.
2012-02-10 18:05:51 -05:00
Justin McWilliams 063dc935a5 plists cannot store NoneType, so store 0 for unknown download_kbytes_per_sec 2012-02-10 12:51:27 -05:00
Justin McWilliams 11e5818b75 updatecheck now calculates download speed (KB/s) and installer writes it to ManagedInstallReport.plist::InstallResults dictionaries. 2012-02-10 11:27:45 -05:00
Greg Neagle 2780b414cc Bump version.plist to 0.8.2 for upcoming release 2012-02-09 16:35:13 -08:00
Greg Neagle 05e6aa57e9 Adobe CS4 installs now attempt to kill stalled Adobe AIR processes, just like CS5 installs. This allows installs at the loginwindow to succeed. 2012-02-09 08:28:21 -08:00
Greg Neagle 02a8b0cfc6 Move getPIDforProcessName into munkicommon for use by both munkistatus and adobeutils 2012-02-04 12:13:46 -08:00
Greg Neagle 856a943ff3 Fix for optional_installs managed_uninstalls -- bad intentation 2012-02-03 17:28:58 -08:00
Justin McWilliams 32d0241c89 Replace plist footer magic number with calculated string length, ala http://code.google.com/p/munki/source/detail?r=24bb604dfa2494c7c904e13b8a1dee18a17ef25f for plist header. 2012-01-24 12:53:39 -05:00
Justin McWilliams 24bb604dfa Replace magic number with calculated string length, for easier readability and future maintainability. 2012-01-24 12:12:11 -05:00
Justin McWilliams 6c06a48fd7 Clean up appleupdates.GetSoftwareUpdateResource and RetrieveURLToCacheDir docstrings. 2012-01-24 12:05:26 -05:00
Greg Neagle b651165187 ApplicationInventory.plist now contains filename and CFBundleName for each application item. 2012-01-20 15:03:00 -08:00
Greg Neagle 638e869bc5 Merge branch 'master' into curl-refactor 2012-01-19 08:39:51 -08:00
Justin McWilliams c7d2f2a9b0 Change utils.runExternalScript() script_args default from an empty list to an empty tuple.
Default arguments are evaluated once at module load time. This may cause problems if the argument is a mutable object such as a list or a dictionary. If the mutable object is changed within the function, those changes will persist to subsequent calls of the function. This wasn't a problem for runExternalScript yet, since the default arg is not changed within the function, but we might as well fix it to protect against potential future bugs.
2012-01-19 11:29:23 -05:00
Justin McWilliams 896bd9a80c If InstallInfo.plist is corrupt, delete it and move on instead of crashing indefinitely. 2012-01-18 14:34:59 -05:00
Greg Neagle 05e3df8704 Save ApplicicationInventory report for possible use by postflight reporting scripts 2012-01-17 08:21:18 -08:00
Greg Neagle 0a6f19a4e9 Merge branch 'master' into curl-refactor 2012-01-06 12:42:41 -08:00
Greg Neagle 73b2155117 munkicommon.MunkiLooseVersion can now init from integers and floats 2012-01-06 12:41:27 -08:00
Greg Neagle dd0ca56ac2 Merge branch 'master' into curl-refactor 2012-01-06 12:32:55 -08:00
Greg Neagle dc75fd9df4 MunkiLooseVersion objects now correctly initialized when given an empty string. 2012-01-06 12:32:27 -08:00
Greg Neagle db55fae03b Log when a disk image has an embedded SLA/EULA; updated warning when Spotlight search takes too long. 2012-01-06 11:44:18 -08:00
Greg Neagle ca03bb0325 Output tweaks; munkicommon.mountdmg() can now mount disk images containing End User License Agreements 2012-01-04 13:54:04 -08:00
Greg Neagle 7aa439d445 Change updatecheck.getMunkiResource() to updatecheck.getResourceIfChangedAtomically() so as not to break existing preflight scripts that might make use of updatecheck.getResourceIfChangedAtomically() 2011-12-22 15:36:13 -08:00
Greg Neagle 96a2536141 appleupdates.py output tweaks; updated tests 2011-12-22 14:32:13 -08:00
Greg Neagle 5651b2a9a4 appleupdates.py now sets User-Agent header; munki-specific cert and header stuff moved to updatecheck; tests updated 2011-12-22 14:01:27 -08:00
Greg Neagle 50833869db Conflict resolution 2011-12-22 09:30:49 -08:00
Justin McWilliams 6e9790c129 If a cached manifest is corrupt, delete it. 2011-12-22 11:27:15 -05:00
Greg Neagle 03a6136ea0 Change appleupdates.py to use fetch.py for downloads 2011-12-21 16:36:52 -08:00
Greg Neagle 7160c4d176 Move a couple more functions from updatecheck.py to fetch.py 2011-12-21 15:02:36 -08:00
Greg Neagle 0c17cc4378 Complete refactor of fetch.py/updatecheck.py 2011-12-21 14:55:44 -08:00
Greg Neagle db86dceace Begin changes so updatecheck.py uses fetch.py 2011-12-21 14:35:36 -08:00