Commit Graph

44 Commits

Author SHA1 Message Date
Greg Neagle
a4e19992b4 Remove debugging print() statement 2025-06-10 15:20:13 -07:00
Greg Neagle
6d33d5b33d More reliable identification of flat pkg PackageInfo and Distribution files 2025-04-02 09:18:19 -07:00
Greg Neagle
6b4ad647c4 Update copyright dates 2025-01-25 15:35:09 -08:00
Greg Neagle
29fd72a80c Fix for deprecation messages new in macOS 14.4 that corrupt installer output 2024-03-22 10:35:27 -07:00
Greg Neagle
2b327569b4 Update copyright dates 2024-01-30 16:14:29 -08:00
Greg Neagle
8134cedbc2 Address issue parsing bundle-style distribution packages introduced here: 21a6a4d3a5 2023-11-27 09:03:17 -08:00
Greg Neagle
54a85fbd61 Check for valid _package_ extension (not installer item extension) when attempting to get metadata for a package. 2023-09-15 14:00:34 -07:00
Greg Neagle
8dbcecd61e minor pylint tweaks 2023-06-27 11:45:17 -07:00
Greg Neagle
d1db45e6bc Fix for issue #1179 2023-06-27 11:22:20 -07:00
Greg Neagle
213cc35add Remove distutils.version dependency from MunkiLooseVersion 2023-05-04 10:26:23 -07:00
Greg Neagle
767f64b12a Update copyright info 2023-02-22 09:59:22 -08:00
Jim Zajkowski
b0cfd6a789 Fix issue with receiptinfo having a null product_version (#1166)
* Fix issue with receiptinfo having a null `product_version`

* More pythonic
2023-01-10 13:49:55 -08:00
Greg Neagle
21a6a4d3a5 makepkginfo: Make use of Product version info if available in a package Distribution file 2022-12-06 14:36:10 -08:00
Greg Neagle
5ee0f5928a Update copyright dates 2022-05-10 16:09:38 -07:00
Greg Neagle
9d3e265cb8 Update copyright dates 2021-02-20 09:05:58 -08:00
Greg Neagle
bee2216e8d Remove most subprocess bufsize and open buffering options to instead use defaults. Addresses several RuntimeWarnings when using Python 3.8. 2020-08-06 21:34:43 -07:00
Greg Neagle
1f3ac5f2eb When parsing old-style .info files, first attempt to decode as MacRoman before trying UTF-8 2020-01-23 11:42:46 -08:00
Greg Neagle
0c622922df Parse old-style .info files in Python 3 without crashing when encountering non-ASCII characters. 2020-01-23 09:51:00 -08:00
Greg Neagle
72a0535d0d Update Copyright dates 2020-01-01 08:53:37 -08: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
7ff576f159 Python 3 compatibility fixes 2019-07-13 18:21:54 -07:00
Greg Neagle
b5bb875884 Better unicode text handling for subprocesses 2019-06-24 21:53:37 -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
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
4b2327d54b More Python 3 compatibility 2019-06-04 22:27:29 -07:00
Greg Neagle
3768eb78cb PyLint cleanups 2019-05-05 11:14:04 -07:00
Greg Neagle
df60207145 Add 'from __future__ import absolute_import' to all files to enforce Python3-style imports 2019-05-03 21:34:56 -07:00
Greg Neagle
531d99a01a Convert all print statements to Python3-compatible print functions 2019-05-03 19:47:37 -07:00
Elliot Jordan
d14c4304ea Various typo fixes and spelling corrections (#907)
* Fixed "No Comment" typo in strings files

* Fix "problem updates" typo

* Fix "caught" typo

* Fix "pseudo" typo

* Fix "instantiated" typo

* Fix "explicitly" typo

* Fix "osascript" typo

* Spelling fixes and various other corrections

* Fix two more instances of "Logput"

* Fixed a few remaining spelling issues in python files

* Fix "because" typo

PR also submitted upstream to the Murky project for the same correction.

* Fix name of associated app

* Additional spelling corrections in comments/docstrings
2019-02-14 08:30:43 -08:00
Greg Neagle
e10fed04ee Defend against badly-authored packages that define their installKBytes as a float instead of an integer. Addresses #902. 2019-01-30 09:15:11 -08:00
Greg Neagle
918d0b7391 Update copyright dates 2019-01-02 10:31:50 -08:00
Greg Neagle
1428c40d06 Update copyright notices to include 2018 2018-01-20 08:46:22 -08:00
Greg Neagle
4053a0dbe7 Update copyright dates to 2017 2017-01-17 20:14:31 -08:00
Greg Neagle
24805bd99b Remove 'shebang' line from all Python modules that are not intended to be executed as scripts. This also causes my stupid editor to stop marking these files as executable. 2017-01-11 16:03:33 -08:00
Greg Neagle
2e905b0dea Once again remove executable bits that are getting set 2017-01-10 09:03:30 -08:00
Greg Neagle
8deb944a7c decrease repeated defintions of the same function 2017-01-09 10:14:16 -08:00
Greg Neagle
41153d3a86 Remove execute bit from most munkilib/*.py files 2017-01-02 16:07:55 -08:00
Greg Neagle
628046ed15 Many PyLint fixes and missing import fixes 2017-01-02 16:06:16 -08:00
Greg Neagle
242bbc9855 Move more functions out of updatecheck and into new modules 2017-01-01 14:43:54 -08:00
Greg Neagle
c386ede21c Move Memoize decorator to utils module 2016-12-17 09:24:15 -08:00
Greg Neagle
b126f09bb4 Move getFirstPlist function into utils 2016-12-17 09:06:40 -08:00
Greg Neagle
8a6a7bb13e Reorg of modules under munkilib; I might chnage my mind again... 2016-12-16 19:02:17 -08:00