Commit Graph

41 Commits

Author SHA1 Message Date
Greg Neagle
36769cdbbc Revert "Change all shebangs in prep for Python 3.12 (where symlinks to the Python executable are broken)"
This reverts commit fdec07b615.
2024-02-23 10:49:00 -08:00
Greg Neagle
fdec07b615 Change all shebangs in prep for Python 3.12 (where symlinks to the Python executable are broken) 2024-02-23 09:05:16 -08:00
Greg Neagle
2b327569b4 Update copyright dates 2024-01-30 16:14:29 -08:00
Greg Neagle
a8494ab662 Step one of addressing distutils.version deprecation in Python 3.10 2023-05-04 09:17:32 -07:00
Greg Neagle
767f64b12a Update copyright info 2023-02-22 09:59:22 -08:00
Greg Neagle
5ee0f5928a Update copyright dates 2022-05-10 16:09:38 -07:00
Greg Neagle
d91d694ce5 repoclean: when analyzing receipts across items, sort the receipts for better comparison 2022-04-11 11:13:19 -07:00
Greg Neagle
e80604f2a2 Change shebangs of makecatalogs and repoclean to reference munki-python.
This will reduce the support burden when Apple's Python is removed in macOS 12.3.
People running these tools on non-macOS platforms will need to edit the shebang lines or call via their preferred Python.
2022-01-28 08:51:30 -08:00
Greg Neagle
9d3e265cb8 Update copyright dates 2021-02-20 09:05:58 -08:00
Greg Neagle
b0530adf4f Remove orphaned packages as part of a repo cleanup 2020-03-23 07:17:49 -07:00
Greg Neagle
002b40f62c Line length and continued indentation fixes 2020-01-28 21:44:54 -08:00
macmule
2c659b146e Update repoclean (#976)
* Update repoclean

Added --auto flag

* Update repoclean

added missed recommended changes
2020-01-28 21:38:31 -08:00
William Theaker
e2d88c0091 Indicate default option y/n choices (#970)
* Indicate default option for repoclean

* Indicate default choice
2020-01-07 15:35:44 -08:00
Greg Neagle
72a0535d0d Update Copyright dates 2020-01-01 08:53:37 -08: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
b5bb875884 Better unicode text handling for subprocesses 2019-06-24 21:53:37 -07:00
Greg Neagle
4b2327d54b More Python 3 compatibility 2019-06-04 22:27:29 -07:00
Greg Neagle
d399702227 Add Python 3 support for repoclean 2019-05-31 08:58:47 -07:00
Greg Neagle
f1df5d96a6 Pylint fixes 2019-05-05 12:48:15 -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
2ad27ff411 Align except clauses with PEP 3110 (#933)
This should work for Python 2.6+, including 3.
https://www.python.org/dev/peps/pep-3110/#compatibility-issues
2019-05-03 15:05:13 -07:00
Elliot Jordan
5797477305 Minor typo fix in docstring (#900) 2019-01-15 09:04:26 -08:00
Greg Neagle
918d0b7391 Update copyright dates 2019-01-02 10:31:50 -08:00
Nathan Perkins
5ab55e8193 Sort catalogs in repoclean (#874) 2018-10-31 10:02:57 -07:00
Greg Neagle
1428c40d06 Update copyright notices to include 2018 2018-01-20 08:46:22 -08:00
Clayton Burlison
5e754bc5e7 fix: Remove duplicate --plugin flag (#751)
This removes the duplicate --plugin flag from the help menu of:
* iconimporter
* makecatalogs
* munkiimport
* repoclean
2017-04-22 00:03:43 -05:00
Greg Neagle
c6d63dcfcf repoclean: more refactoring cleanup 2017-03-17 19:15:47 -07:00
Greg Neagle
45baab0b7f Refactor of repoclean 2017-03-17 10:14:17 -07:00
Greg Neagle
95e1a192fe repoclean: Suppress makecatalogs stdout as we did previously 2017-03-16 14:27:17 -07:00
Greg Neagle
398edd3248 repoclean: Attempt to add support for deleting uninstaller_items as well 2017-03-16 10:14:29 -07:00
Greg Neagle
3bdcab5451 repoclean: take 2 on properly removing pkginfo items 2017-03-16 09:24:17 -07:00
Greg Neagle
727636f184 repoclean: Fix for deleting pkginfo items 2017-03-16 08:33:46 -07:00
Greg Neagle
96d2bfcdf0 Update repoclean to work with repo plugins 2017-03-15 16:36:27 -07:00
Greg Neagle
f47cd6ac1a Fix several incorrect .encode() methods called on strings returned from subprocess .readline() -- replace with .decode() method 2017-03-05 07:49:41 -08:00
Greg Neagle
4053a0dbe7 Update copyright dates to 2017 2017-01-17 20:14:31 -08:00
Greg Neagle
b4dbbe27a4 Add receipts to the list of key values to hash if an item's uninstall_method is 'removepackages'. We need a complete list of receipt IDs that may have been installed in order to do a good job of uninstalling. This largely affects Office2011_updates, which have unique pkgids for each update. Sigh. 2016-12-12 10:27:03 -08:00
Greg Neagle
64332c0964 Update repoclean help to note that --delete-items-in-no-manifests is not yet implemented. 2016-08-15 09:24:36 -07:00
Greg Neagle
5d605a4b0c Remove unused --dry-run option from repoclean 2016-08-15 09:05:31 -07:00
Greg Neagle
4f1321c1e9 Add repoclean tool to repo 2016-08-15 08:44:30 -07:00