Commit Graph

2166 Commits

Author SHA1 Message Date
Greg Neagle
504c47283f Attempt to parse 10.15's softwareupdate -l output 2019-08-25 19:20:05 -07:00
Greg Neagle
fad3feefe0 Code reformat in appleupdates.sync 2019-08-21 20:55:01 -07:00
Greg Neagle
3cd9b1aa21 Protect against receipt items that are missing the version key 2019-08-08 10:38:07 -07:00
Greg Neagle
619a1d7055 Don't encode CFBundleVersion into a bytestring before checking if it starts with a digit. Fixes a TypeError exception in Python3 2019-08-06 12:50:54 -07:00
Greg Neagle
293efdd767 Fix munkilog.log() so it correctly handles Unicode under Python 2 2019-08-03 21:33:50 -07:00
Greg Neagle
de40d61de8 Adjust human_readable() function to make PyLint happier (and technically more robust) 2019-07-31 09:49:57 -07:00
Joaquín
433fa52aec Fixed repoclean sorting by LooseVersion in reverse mode (#945) 2019-07-31 09:06:46 -07:00
Greg Neagle
11cd7db873 Protect against badly-authored installs arrays when checking if blocking applications are running. 2019-07-30 08:13:35 -07:00
Greg Neagle
16f4f7f9a1 Improved logic for adding items to the lists of fully installed and partially installed items in analyze_installed_pkgs. Addresses here: https://groups.google.com/d/msg/munki-discuss/o9peEXeOZf8/s6ffgmriEwAJ 2019-07-25 16:41:16 -07:00
Greg Neagle
ca7392ee8d Safer handling of bytestrings when making a diskimage 2019-07-23 16:41:49 -07:00
Greg Neagle
558a6494a9 appleupdates/dist.py get_localization_strings: Make sure data is bytestrings before passing to FoundationPlist.readPlistFromString 2019-07-23 13:40:17 -07:00
Greg Neagle
0537cab5ea Bump development version to 3.7. 2019-07-16 22:15:26 -07:00
Greg Neagle
af51af5cdd Change all sh-bang lines to #!/usr/local/munki/python 2019-07-16 22:14:47 -07:00
Greg Neagle
c2d2fef8a6 Convert bytestring data to NSData before passing to NSPropertyListSerialization.
propertyListFromData_mutabilityOption_format_errorDescription_ instead of using memoryview
2019-07-16 22:12:07 -07:00
Greg Neagle
7ff576f159 Python 3 compatibility fixes 2019-07-13 18:21:54 -07:00
Greg Neagle
b5dd66606c Fix authrestart client to not close the socket twice after a request in Python 3. 2019-07-13 07:52:16 -07:00
Greg Neagle
cb6dfcfd90 Simpler implementation of get_input wrapper 2019-07-13 07:31:58 -07:00
Greg Neagle
d3a349a213 Python 3 list vs iterator fix 2019-07-13 07:31:22 -07:00
Greg Neagle
6ca778f456 Python 3 compatibiilty fixes 2019-07-13 07:18:42 -07:00
Greg Neagle
3ac475c7c6 Remove no-longer-used sorting function 2019-07-13 07:12:09 -07:00
Greg Neagle
21ebc71b59 Python 3 compatibility fixes 2019-07-11 00:27:34 -04:00
Greg Neagle
3aec987910 Fix checksum generation in installed_apple_pkgs_changed due to improper bytestring/unicode handling 2019-06-29 07:39:07 -07:00
Greg Neagle
b5bb875884 Better unicode text handling for subprocesses 2019-06-24 21:53:37 -07:00
Greg Neagle
647aa9c67e More bytes vs unicode fun 2019-06-24 16:44:22 -07:00
Greg Neagle
3445e463c4 Properly decode launchctl list output for Python 3 2019-06-24 16:43:44 -07:00
Greg Neagle
bb2242aee8 Re-implement comparsions for MunkiLooseVersion so Python 3 behavior matches than of Python 2 2019-06-24 16:13:06 -07:00
Greg Neagle
cc3da0983c Fix some version sorting issues 2019-06-24 15:49:11 -07:00
Greg Neagle
344b21b332 Fix Python 3 text encoding issues when running embedded scripts 2019-06-24 15:47:47 -07:00
Greg Neagle
58df97e74f display detail on retreived manifest name. requires at least one -v 2019-06-23 18:48:07 -07:00
Greg Neagle
85a854eb98 Revert change to _to_unicode to convert non-string objects/values to unicode strings 2019-06-23 18:46:55 -07:00
Greg Neagle
6730fbb74a Fix some bytes vs unicode handling for Python 3 compatibility 2019-06-23 17:48:03 -07:00
Greg Neagle
ff6248daaf More Python3 compatibility changes 2019-06-23 09:51:22 -07:00
Greg Neagle
57f791b922 Python 3 compatibility changes for makepkginfo 2019-06-22 22:38:52 -07:00
Greg Neagle
0dddb5dbd5 Lots of Python 3 compatibility changes for munkilib 2019-06-22 22:19:39 -07:00
Greg Neagle
2f7b6c1a43 Python 3 compatibility changes for manifestutil 2019-06-22 22:18:29 -07:00
Greg Neagle
1e99d145d3 Python 3 compatibility changes for managedsoftwareupdate 2019-06-22 22:17:45 -07:00
Greg Neagle
234d186e81 Python 3 compatibility changes for makecatalogs 2019-06-22 22:17:15 -07:00
Greg Neagle
be5a38547e Python 3 compatibility chnages for munkilib/appleupdates 2019-06-22 19:38:31 -07:00
Greg Neagle
d391640e0c Python 3 compatibility changes for munkilib/installer/rmpkgs.py 2019-06-22 19:33:25 -07:00
Greg Neagle
bc110d5e96 Python 3 compatibility changes for ptyexec 2019-06-22 19:13:39 -07:00
Greg Neagle
d5183b6556 More Python 3 compatibility changes 2019-06-22 18:56:34 -07:00
Greg Neagle
15df290ee9 Python 3 compatibility for fetch.py 2019-06-22 18:55:43 -07:00
Greg Neagle
1f3683d5b4 Python 3 compatibility for gurl.py 2019-06-22 18:21:22 -07:00
Greg Neagle
4737500efb Replace too-general except BaseException clauses 2019-06-20 22:09:24 -07:00
Greg Neagle
d4a2629a7e Change except BaseException to except Exception throughout 2019-06-20 21:55:12 -07:00
Greg Neagle
2ea3740ddb Remove UTF-8 encoding when logging for better Python 3 behavior 2019-06-20 21:50:43 -07:00
Greg Neagle
4ea8757036 Python 3 compatibility for munkilib/authrestart 2019-06-17 16:09:04 -07:00
Greg Neagle
0b0f5e082e Python3 compatibility for authrestartd 2019-06-17 16:07:24 -07:00
Greg Neagle
19e2d59e08 iconimporter uses FoundationPlist once again 2019-06-17 16:06:17 -07:00
Greg Neagle
dad001bc38 Add Python3 compatibility to FoundationPlist; make plistlib wrappers in munkilib.wrappers use only plistlib 2019-06-17 16:05:28 -07:00