Commit Graph

2290 Commits

Author SHA1 Message Date
Greg Neagle
3acba9bcdc Move some functions from appleupdates.py to new distutils.py 2017-01-04 09:24:08 -08:00
Greg Neagle
39431b02e6 Move pkg install functions from installer.py to pkginstalls.py 2017-01-03 16:51:08 -08:00
Greg Neagle
5c4f883303 PyLint/formatting cleanups 2017-01-03 16:22:56 -08:00
Greg Neagle
0749cc6cde Get installinfo.py to 10/10 PyLint score 2017-01-03 16:21:48 -08:00
Greg Neagle
f5f19137ab PyLint cleanups 2017-01-03 14:33:40 -08:00
Greg Neagle
6e3aecb4b6 Move copy-from-dmg functions into new copyfromdmg.py 2017-01-03 14:33:08 -08:00
Greg Neagle
6f5642af54 Tweak for parsing dist strings data using FoundationPlist 2017-01-03 10:31:22 -08:00
Greg Neagle
883dcef799 Memoize get_version since it won't change during a run 2017-01-03 08:20:12 -08:00
Greg Neagle
160e353d73 Parse strings from dist file using FoundationPlist 2017-01-03 08:19:13 -08:00
Greg Neagle
ac650b56e5 Fix conditional checks so empty values are treated the same as non-existent values 2017-01-03 08:18:04 -08:00
Greg Neagle
bff9cd0d09 remove executable bits that keep getting re-added by my stupid editor 2017-01-02 16:18:28 -08:00
Greg Neagle
e9a2927e27 Remove deprecated code that lead to circular imports 2017-01-02 16:17:13 -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
f338e5ead5 And the refactoring continues... 2017-01-01 15:16:07 -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
1e07c110a4 Move catalog function from updatecheck.py to new catalogs/py module 2017-01-01 09:24:42 -08:00
Greg Neagle
3faa289fc4 Code formatting tweak 2017-01-01 07:08:41 -08:00
Greg Neagle
172a009af2 PyLint cleanups 2016-12-31 17:33:05 -08:00
Greg Neagle
7772659cf2 Don't try to remove a local manifests subdirectory unless it is empty 2016-12-31 17:30:42 -08:00
Greg Neagle
95fea0c78a PyLint cleanups to get to 10/10 in download.py 2016-12-31 17:29:53 -08:00
Greg Neagle
11288bd750 Move download_ functions from updatecheck.py to new download.py module 2016-12-31 15:31:00 -08:00
Greg Neagle
aa13257c5b Get tests working in this branch 2016-12-31 14:18:30 -08:00
Greg Neagle
1c7b6d5e2e Post status notifications in installer.py and removepackages.py even if munkistatusoutput is not set 2016-12-25 11:26:24 -08:00
Greg Neagle
68caa12d05 Tweaks to munkistatus interactions 2016-12-25 08:23:20 -08:00
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