Commit Graph

1620 Commits

Author SHA1 Message Date
Greg Neagle
babf3ed8d4 Formatting cleanups 2016-12-25 08:22:26 -08:00
Greg Neagle
fffd94933e Better relative imports 2016-12-24 16:46:31 -08:00
Greg Neagle
b050a724bb PyLint cleanups for authrestart.py 2016-12-24 16:45:08 -08:00
Greg Neagle
bcf8701546 Simplify logic in updatecheck's processManifestForKey() 2016-12-24 10:39:10 -08:00
Greg Neagle
30abf68cc0 In updatecheck.py, always send munkistatus notifications; no longer depend on the value of munkicommon.munkistatusoutput 2016-12-24 10:29:46 -08:00
Greg Neagle
7194d9d1c6 Remove no-longer-used getAppBundleID function from updatecheck.py 2016-12-24 10:18:32 -08:00
Greg Neagle
4d30c960a3 Move logic for getting client cert CN from updatecheck.py to keychain.py to reduce code duplication 2016-12-24 09:23:28 -08:00
Greg Neagle
10a6950837 Consistent if __name__ == '__main__': bit for all munkilib submodules 2016-12-24 08:17:08 -08:00
Greg Neagle
189e154d5f Don't urllib2.quote manifest names twice! 2016-12-24 08:11:26 -08:00
Greg Neagle
e1d5beed6d Move item comparison functions from updatecheck.py to new compare.py module 2016-12-22 11:04:45 -08:00
Greg Neagle
121b7aca25 Rename hash.py to munkihash.py so not to conflict with built-in hash symbol 2016-12-22 11:03:50 -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
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