2178 Commits

Author SHA1 Message Date
Greg Neagle
72a0535d0d Update Copyright dates 2020-01-01 08:53:37 -08:00
Elliot Jordan
21766484f7 Only attempt decode if xattr_hash exists (#969)
Resolves #968
2020-01-01 08:34:19 -08:00
Greg Neagle
25f7af52d6 Be more careful when attempting to get stored SHA hash of downloaded icons 2019-12-20 09:58:43 -08:00
Greg Neagle
a87ac53c1c Attempt to convert 'LoggingLevel' to int to avoid Python 3 raising an exception when comparing a string and an int. Addresses #963 2019-12-10 11:45:31 -08:00
Greg Neagle
7e1eed59cd Bump version for future release 2019-12-10 11:43:41 -08:00
Greg Neagle
4b94579586 Bumping version to 4.0.0 for future release 2019-11-15 09:00:30 -08:00
Greg Neagle
a827e6cfd2 Import division from __future__ to make pylint --py3k happier 2019-11-14 10:03:03 -08:00
Greg Neagle
aec2ef7014 Raise better exceptions/errors when a filepath given to makepkginfo doesn't exist or can't be read. Addresses #960. 2019-11-14 09:57:00 -08:00
Greg Neagle
91f6087751 Handle bytestring output from fdesetup if it returns non-zero. Addresses #959. 2019-11-07 11:55:13 -08:00
Greg Neagle
e20a7c7e63 When getting available license seats in Python 3, make sure data passed to FoundationPlist.readPlistFromString is a byte array. Addresses #957. 2019-11-03 22:44:08 -08:00
Greg Neagle
ebdefe4fc0 Attempt to autodetect repo url if repo URL is undefined _or_ is the insecure default. Addresses an issue in 3.6.3 release where autodetect was skipped. 2019-10-14 09:05:43 -07:00
Greg Neagle
c2eb49e025 Properly decode outout from Adobe install tool in Python 3. 2019-10-11 15:47:53 -07:00
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