Commit Graph

1008 Commits

Author SHA1 Message Date
Greg Neagle
89475ed3e1 Some changes to get more accurate version numbers. Hard to believe it's necessary, but... 2016-06-07 09:01:43 -07:00
Greg Neagle
043c7eb24b Fix undefined 'fileurl' variable 2016-06-03 20:03:01 -07:00
Greg Neagle
85f87e497d Major rework of appleupdates.py. More efficent, especially under El Capitan. Adds support for localized names and descriptions of Apple updates. 2016-06-03 19:12:12 -07:00
Greg Neagle
bd3b1aa916 Revert "Attempt to get progress info working again during Apple Software Update installs on El Capitan"
This reverts commit d92afeaae9.
2016-05-23 10:29:33 -07:00
Greg Neagle
827113f3d5 Return to explictly removing the 'com.apple.quarantine' xattr from copied items since we can't trust ditto. 2016-05-23 10:07:23 -07:00
Greg Neagle
a322efd120 Actually return PKGATA from analyzeInstalledPkgs() 2016-05-20 06:12:23 -07:00
Greg Neagle
f812bbd719 Safer use of the package data structure created by analyzeInstalledPkgs() to avoid referencing its keys if it has not yet been defined 2016-05-15 18:53:06 -07:00
Greg Neagle
d92afeaae9 Attempt to get progress info working again during Apple Software Update installs on El Capitan 2016-05-13 16:33:16 -07:00
Greg Neagle
28cb5f7c66 Better handling of manifest names that include Unicode characters, including handling --id from managedsoftwareupdate at the command-line. 2016-05-11 10:21:15 -07:00
Greg Neagle
5a3e130449 If an item download fails, remove its name from the list of processed items so that it is not considered successfully processed, which can cause future dependency checking to improperly succeed. 2016-04-29 13:51:19 -07:00
Greg Neagle
c769f37fb7 Bump version.plist to 2.7.0 for upcoming release 2016-04-28 09:46:59 -07:00
Greg Neagle
0a2dedb013 Add a debug message 2016-04-25 14:48:43 -07:00
Greg Neagle
9f4a4f198a PyLint cleanup 2016-04-25 13:21:09 -07:00
Justin McWilliams
b86039d18b Re-add pylint disable=E0611 around CoreFoundation imports 2016-04-25 13:31:51 -04:00
Justin McWilliams
34d4a0863e Re-add pylint enable-mgr=E0611, which was a temporary ignore of Foundation modules being unknown 2016-04-25 13:29:57 -04:00
Justin McWilliams
81bc9ddb68 Re-add pylint disable-msg=C0103 to ignore camelCase names 2016-04-25 13:28:12 -04:00
Justin McWilliams
30cea5ac1f Remove package download no idle sleep assertion. 2016-04-25 13:16:55 -04:00
Justin McWilliams
396f05bf50 Create "no idle sleep" assertions while downloading packages.
This is especially helpful when downloading large packages and/or while
on slow network connections, avoiding "inactivity" causing machines to sleep
and package downloads to fail.
2016-04-22 17:07:35 -04:00
Greg Neagle
e69a000dc7 Fix improper logging call leading to extra log files when using removepackages to remove items 2016-04-21 17:43:04 -07:00
Wade Robson
79e8566da9 Catch OSError and IOError. Output script error 2016-04-20 08:21:48 -07:00
Wade Robson
c9f0d793df Catch unwanted OSError. Provide feedback instead. 2016-04-20 07:26:04 -07:00
Greg Neagle
d42b6c04ef PyLint cleanups 2016-04-13 14:42:17 -07:00
Greg Neagle
c4b98e24ff Adjust debug message when importing middleware 2016-04-13 14:07:25 -07:00
Greg Neagle
e847454b60 More efficient middleware import 2016-04-13 14:05:16 -07:00
Greg Neagle
452c3e8f2a Safer import of middleware; add warning and debug output 2016-04-13 13:55:13 -07:00
Greg Neagle
cc2d6cbba8 Merge pull request #580 from waderobson/middleware
Allow the use of middleware
2016-04-13 13:15:06 -07:00
Greg Neagle
d213237049 If an optional item pkginfo does not have an uninstallable key, default to False instead of None 2016-04-12 19:01:42 -07:00
Greg Neagle
a5e2fae5e5 Mark optional_item as uninstallable only if pkginfo uninstallable=True and there is a non-empty uninstall_method 2016-04-11 17:28:09 -07:00
Wade Robson
13f6782f9a function doesn't seem necessary anymore 2016-04-07 21:40:23 -07:00
Wade Robson
91bbd654f6 Import middleware once 2016-04-07 20:57:05 -07:00
Greg Neagle
b1ad79722e Minor change to logging message for auto-detected apple_items in updatecheck.py 2016-04-07 12:51:57 -07:00
Greg Neagle
c7b9fa3aa2 Merge pull request #576 from bruienne/master
Log more details about apple_item presence.
2016-04-07 12:48:49 -07:00
Greg Neagle
8fa31df09a Merge branch 'appleupdates-nsurl-fix' 2016-04-07 10:48:27 -07:00
Greg Neagle
2d90eaad67 Bump version to 2.6.1 for bug-fix release. 2016-04-07 10:47:23 -07:00
Greg Neagle
8d5b53b7a7 appleupdates.py: NSURL fileSystemRepresentation() not available on 10.8 and earlier, leading to a crash. Replace with NSURL path(). 2016-04-07 10:45:33 -07:00
Greg Neagle
3d9486b984 Bump version for next development round. 2016-04-06 09:04:11 -07:00
Greg Neagle
d0df8379c9 Break up large messages to syslog into 1000 character chunks. Addresses #583. 2016-04-05 14:07:12 -07:00
Greg Neagle
540b9e1a65 Better tracking of managed_updates -- includes requires/update_for items as well 2016-04-05 10:17:18 -07:00
Greg Neagle
a9b421525c If /Library/Managed Installs/icons or client_resources exist but are not directories, display an error message and stop trying to download icons/client_resources. Addresses #585 2016-04-04 11:15:36 -07:00
Greg Neagle
41ef4ac741 Convert Exception objects to unicode before passing them to munkicommon.display_* functions. Addresses issue #584 2016-03-30 10:50:00 -07:00
Wade Robson
fb6ac507ab Stop using sys to find munki dir. 2016-03-25 17:00:31 -07:00
Greg Neagle
65089c060d Fix several logic errors and a poor assumption when converting Apple update must-close attributes to blocking_applications 2016-03-25 09:41:56 -07:00
Wade Robson
304853a6fc fixed crash due to no middleware 2016-03-21 22:16:35 -07:00
Wade Robson
f8f9c94ee1 look for middleware*.py if present change options dict 2016-03-21 22:01:02 -07:00
Wade Robson
a28a918feb Allow for the use of middleware 2016-03-20 19:40:40 -07:00
Greg Neagle
2abb90bba8 Remove more cases of premature str() conversion for munkicommon.display_*() functions. Addresses potential unicode issues. 2016-03-18 11:19:17 -07:00
Greg Neagle
7f27114fcb Do not attempt to convert items to strings before sending them to munkicommon.display_* functions; let those functions do the proper conversions. Addresses unicode issues. 2016-03-18 11:14:00 -07:00
Pepijn Bruienne
55936d96ed Merge remote-tracking branch 'upstream/master' 2016-03-17 14:07:20 -04:00
Pepijn Bruienne
180065faff Log more details about apple_item presence. 2016-03-17 14:07:02 -04:00
Greg Neagle
12d4f0d27e Update copyright info on files; remove abandoned tools from code/tools 2016-03-15 09:32:28 -07:00