Commit Graph

62 Commits

Author SHA1 Message Date
Greg Neagle
7ed49cebe3 Add support for uninstall_method of type 'uninstall_package' 2023-01-18 14:39:05 -08:00
Greg Neagle
e2ac949124 Initial commit of changes around staging macOS installers and helping users manually launch them 2022-08-24 14:52:11 -07:00
Greg Neagle
3f4be7ed80 Increase error detail when copying items from a dmg fails 2022-06-15 16:37:46 -07:00
Greg Neagle
5ee0f5928a Update copyright dates 2022-05-10 16:09:38 -07:00
Greg Neagle
7708340a3a Fix bytes vs string issue in installer/rmpkgs.py used by the removepackages tool 2022-03-23 16:06:01 -07:00
Greg Neagle
9d3e265cb8 Update copyright dates 2021-02-20 09:05:58 -08:00
Greg Neagle
63df06dca4 Merge branch 'master' into manualsoftwareupdate 2020-05-04 13:43:57 -07:00
Greg Neagle
46cf0d05f1 Properly decode installer error output before storing it with installer stdout, so that later if we have to display/print it we don't trigger an exception if we have both stdout and stderr captured. 2020-05-04 13:43:12 -07:00
Greg Neagle
2575452cd6 Skip image verification when mounting disk images prior to install 2020-04-24 16:11:02 -07:00
Greg Neagle
5419366bfc Add progress output to copy-from-dmg installs 2020-04-11 11:16:29 -07:00
Greg Neagle
ec4b71d059 Add progress output to copy-from-dmg installs 2020-04-11 11:15:47 -07:00
Greg Neagle
bf5c9d9b0d Properly decode installer error output under Python 3 2020-03-11 10:48:50 -07:00
Christopher Grande
997ad69379 When checking for com.apple.quarantine xattr when copying from dmg, do not follow symlink (#983) 2020-03-06 10:07:55 -08:00
Greg Neagle
5fdc5f809b When removing existing destination items before copying from a dmg, properly handle symlinks and regular files. 2020-02-06 15:08:13 -08:00
Greg Neagle
75d8f7ff07 When recursively removing the com.apple.quarantine xattr when copying from a dmg, do not follow symlinks. 2020-01-14 16:21:56 -08:00
Greg Neagle
72a0535d0d Update Copyright dates 2020-01-01 08:53:37 -08:00
Greg Neagle
b5bb875884 Better unicode text handling for subprocesses 2019-06-24 21:53:37 -07:00
Greg Neagle
0dddb5dbd5 Lots of Python 3 compatibility changes for munkilib 2019-06-22 22:19:39 -07:00
Greg Neagle
d391640e0c Python 3 compatibility changes for munkilib/installer/rmpkgs.py 2019-06-22 19:33:25 -07:00
Greg Neagle
45d4f78d2c PyLint cleanups 2019-05-05 09:26:42 -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
Greg Neagle
e81ed8be18 Display status of an item install before running a preinstall script, if any. Fixes #915 2019-03-10 15:58:05 -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
Elliot Jordan
435719eb3c Set owner and group at the same time (#906) 2019-02-14 08:24:40 -08:00
Greg Neagle
918d0b7391 Update copyright dates 2019-01-02 10:31:50 -08:00
Greg Neagle
e5b473107a Cleaning up logic around None/Restart/Shutdown 2018-12-11 11:25:05 -08:00
Greg Neagle
18ea11f606 Rename a variable used when checking to see if an installer item is still needed after a successful install 2018-11-20 20:50:21 -08:00
Greg Neagle
3dd91d87ef Merge branch 'Munki3dev' of https://github.com/munki/munki into Munki3dev 2018-11-20 20:46:32 -08:00
aysiu
0264fc7007 foundagain for precache OnDemand (#878)
Makes a cache delete exemption for items that are both precache and OnDemand
2018-11-20 20:46:03 -08:00
Greg Neagle
488b9f7581 Merge branch 'atomic-move' into Munki3dev 2018-11-19 08:07:47 -08:00
Greg Neagle
e8ee653a24 When copying items from dmg, first copy to a local tmp directory, do all post-copy adjustments (setting owner, group mode, removing quarantine attribute), then move to final location 2018-10-22 14:51:01 -07:00
Greg Neagle
6111ce6c17 Change default mode adjustments for copy_from_dmg items from o-w to o-w,go+rX to address dumb developers who don't test anything other than manual drag-n-drop on single-user Macs 2018-07-02 14:05:32 -07:00
Greg Neagle
ee7be2997d Before copying a directory for a copy_from_dmg item, ensure it is owned by root (in addition to the 0700 check) 2018-06-19 15:31:35 -07:00
Greg Neagle
43cedc5d1c Before copying a directory for a copy_from_dmg item, ensure it is owned by root (in addition to the 0700 check) 2018-06-19 15:30:38 -07:00
Greg Neagle
a489f9caa3 Catch exception if we cannot securely create the destination directory for a copy_from_dmg item 2018-06-19 14:47:09 -07:00
Greg Neagle
8496349b73 Catch exception if we cannot securely create the destination directory for a copy_from_dmg item 2018-06-19 14:46:33 -07:00
Greg Neagle
9e0d4e0426 More strict validation of permissions when copying directories from a disk image. 2018-06-18 11:28:50 -07:00
Greg Neagle
1428c40d06 Update copyright notices to include 2018 2018-01-20 08:46:22 -08:00
Greg Neagle
2462981994 Don't ignore the value of RestartAction for configuration profile installs. Fixes #808. 2017-10-09 11:50:00 -07:00
Greg Neagle
eb17f853fb Don't set overall restartflag to False if a nopkg item doesn't require restart. Thanks to @chymb 2017-09-12 14:13:06 -07:00
Greg Neagle
f1be44faf9 Move remove_from_selfserve_* functions from installer to manifestutils to prevent an import loop in removepackages 2017-07-06 14:22:10 -07:00
Greg Neagle
027fa39b0a Add commentary around the caffeinator variable 2017-06-11 10:21:41 -07:00
Greg Neagle
4c621ba528 Prevent idle sleep when checking/downloading if we are on AC power for better bootstrapping behavior 2017-06-11 09:51:51 -07:00
Greg Neagle
de38380516 Refactring of munkilib/installer/core.py 2017-04-07 16:42:04 -07:00
Greg Neagle
15fb5c56c5 Refactoring in munkilib/installer/dmg.py to make PyLint happier. Now a score of 100! 2017-04-07 10:47:25 -07:00
Greg Neagle
254b03ba07 Refactoring in munkilib/installer/pkg.py to make PyLint happier. Now a score of 100! 2017-04-07 09:15:16 -07:00
Greg Neagle
15c26d8ae3 Add support for -allowUntrusted flag for installer packages 2017-04-05 11:35:42 -07:00
Greg Neagle
2219f13621 Add macOS install support to managedsoftwareupdate 2017-04-01 21:28:48 -07:00