Commit Graph

2254 Commits

Author SHA1 Message Date
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
f07fe8703c Fix retrieval of site_default manifest 2016-12-17 07:38:01 -08:00
Greg Neagle
72ed1cf17d appleupdates: catch a wider range of fetch errors when caching catalogs, etc 2016-12-17 07:24:54 -08:00
Greg Neagle
8a6a7bb13e Reorg of modules under munkilib; I might chnage my mind again... 2016-12-16 19:02:17 -08:00
Greg Neagle
bfe8c1ca0a Merge branch 'master' into major-refactor 2016-12-16 17:03:27 -08:00
Greg Neagle
c3d6a3830d Fix changed references from MunkiDownloadError to DownloadError; simpler logic in AppleSoftwareUpdatesAvailable when suppress_check is True. 2016-12-16 17:02:40 -08:00
Greg Neagle
84ba4d4aba PyLint cleanups 2016-12-16 16:26:06 -08:00
Greg Neagle
24378e9c5d Remove more 10.5-specific code from removepackages.py 2016-12-16 15:33:42 -08:00
Greg Neagle
3bf7d20e99 Move getInstalledPackages() from updatecheck.py to munkicommon/pkgutils.py 2016-12-16 15:30:35 -08:00
Greg Neagle
4fb0943d4a Remove all 10.5 and earlier support from removepackages.py 2016-12-16 15:29:08 -08:00
Greg Neagle
427064223b move some more functions out of updatecheck.py 2016-12-16 14:16:02 -08:00
Greg Neagle
69ad13f9a3 Remove executable bits; get some missed renames 2016-12-16 13:39:16 -08:00
Greg Neagle
ddd34cd88d Get rid of the MACHINE and CONDITIONS globals in updatecheck.py 2016-12-16 12:50:33 -08:00
Greg Neagle
be3224dc0f Cleanup of predicateInfoObject() and predicateEvaluatesAsTrue() 2016-12-16 12:38:13 -08:00
Greg Neagle
228ce76ebb Replace direct access to the MANIFESTS global in manifestutils.py with getter and setter fucntions 2016-12-16 12:13:25 -08:00
Greg Neagle
5a78efcb7b Move getDataFromURL function from updatecheck.py to fetch.py 2016-12-16 11:16:41 -08:00
Greg Neagle
e79dc726f1 Move manifest functions in updatecheck.py to new manifestutils.py module 2016-12-16 10:58:42 -08:00
Greg Neagle
d822191720 Move updatecheck.getResourceIfChangedAtomically() to fetch.munki_resource() 2016-12-16 10:10:06 -08:00
Greg Neagle
82f865e29e Get rid of yet another nasty global variable 2016-12-15 16:15:19 -08:00
Greg Neagle
133e32ec7f Rename certain functions that are intended for internal use only 2016-12-15 13:54:14 -08:00
Greg Neagle
b0dd20018f Move the last function out of munkicommon/__init__.py 2016-12-15 13:43:11 -08:00
Greg Neagle
dcedb3a418 Make munkicommon.stopRequested() work in all run modes 2016-12-15 08:40:35 -08:00
Greg Neagle
f46c04307f Replace all references to 'Managed Software Update.app' with 'Managed Software Center.app' 2016-12-14 17:02:14 -08:00
Greg Neagle
bbd34966ca Always send status updates so MSC.app can display them if it is open. 2016-12-14 16:59:54 -08:00
Greg Neagle
ddf1940bf6 Move authrestart module out of munkicommon to root of munkilib 2016-12-14 15:48:40 -08:00
Greg Neagle
38f1176194 Change string formatting in authrestart.py to match that of the rest of Munki code 2016-12-14 15:39:31 -08:00
Greg Neagle
61120839db Set global verbose and munkistatusoutput variables via munkicommon.display module 2016-12-14 15:17:17 -08:00
Greg Neagle
b63531bd8a munkicommon __init.py__ almost free of functions... 2016-12-14 15:07:38 -08:00
Greg Neagle
705e4d5239 Move functions that get process info into processes module 2016-12-14 11:54:01 -08:00
Greg Neagle
7b8aa53833 Move information-gathering functions into info module; move constants into constants module 2016-12-14 11:38:14 -08:00
Greg Neagle
67feb23d69 in dmgutils, replace all print >>sys.stderr output with display_error() 2016-12-14 10:56:18 -08:00
Greg Neagle
3a3b801566 Move package/receipt utilities into their own module 2016-12-14 10:50:30 -08:00
Greg Neagle
0cb4636cf3 Add initial osutils module; update authrestart 2016-12-14 10:16:09 -08:00
Greg Neagle
932e4269d3 Move authrestart functions into their own module; remove abandoned munkicommon.py and munkiprefs.py 2016-12-14 10:07:40 -08:00
Greg Neagle
04e6483f7e Start of munkicommon refactor. 2016-12-14 09:55:05 -08:00
Greg Neagle
4566764a90 Move preferences functions and classes into munkiprefs.py 2016-12-13 15:57:12 -08:00
Greg Neagle
a28d492399 Instead of using nasty module global variables, cache config_profile_info's results in a function arribute 2016-12-13 15:13:26 -08:00
Greg Neagle
ac003c8db4 Use memoize decorators to cache results of expensive functions without nasty module globals 2016-12-13 15:01:20 -08:00
Greg Neagle
74aed49f22 Reorganize exceptions reported by fetch.py (especially getResourceIfChangedAtomically and friends); updatecheck.checkServer rewritten to use fetch/gurl functions for the check (therefore using system proxies); exit updatecheck if there is a failure to retrieve any manifest (included_manifests as well). Addresses #560. Addresses issue reported on Slack with reaching repos hosted in the cloud from behind a web proxy. 2016-12-13 13:46:56 -08:00
Greg Neagle
f8205be609 Simplify manifest retrieval logic 2016-12-12 15:21:04 -08:00
Greg Neagle
4030c6b52f Doc string fix for fetch.get_url() 2016-12-12 14:14:53 -08:00
Greg Neagle
4125dcc196 Now that checking and downloading Apple Software Updates have been combined into a single action, change the status text 2016-12-12 10:28:46 -08:00
Greg Neagle
4f45a6a683 Merge branch 'master' of https://github.com/munki/munki 2016-12-12 10:27:13 -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
Wesley Whetstone
1163fbb3d2 readding changes to manasoftwareupdate 2016-12-01 10:40:10 -08:00
Wesley Whetstone
ef6627b74e readding changes to munkicommon 2016-12-01 10:38:23 -08:00
Greg Neagle
5ae397eee4 Merge branch 'fv-auth-restart' 2016-11-28 10:44:33 -08:00
Greg Neagle
069810a1ad Fixes for NetFS share mounting under 10.8.x 2016-10-31 13:54:18 -07:00
Greg Neagle
0518e4048e Make sure there is a repo_url before attempting to mount a fileshare in munkiimport and manifestutil 2016-10-24 16:18:37 -07:00