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
Greg Neagle
7c0a437f6c
PyLint clean-ups
2016-10-24 08:26:30 -07:00
Greg Neagle
a8fb9feede
Recursive indented printing of included manifests for manifestutil expand-included-manifests
2016-10-21 16:34:05 -07:00
Greg Neagle
7013581371
Really fix the fileshare mounting code in manifestutil
2016-10-21 15:58:25 -07:00
eholtam
69af0bae02
Added subcommand refresh-cache
2016-10-21 17:49:18 -05:00
Greg Neagle
4c8ed8f161
Merge branch 'master' of https://github.com/munki/munki
2016-10-21 15:39:18 -07:00
Greg Neagle
e9bdb65ade
Add new Sierra-compatible fileshare mounting code to manifestutil.
2016-10-21 15:38:58 -07:00
Greg Neagle
cccfec15b8
Merge pull request #665 from cwindus/master
...
manifestutil: expand-included-manifests
2016-10-21 15:15:16 -07:00
Greg Neagle
260418b7dd
Merge pull request #667 from gmarnin/patch-2
...
makecatalogs, change the path separator
2016-10-18 14:56:54 -07:00
Greg Neagle
f3ee1d83e4
Some attempts to remove possible unicode issues
2016-10-17 10:49:43 -07:00
Greg Neagle
834796e967
Attempt #2 to catch KeyError exception when attempting to import NetFS's NetFSMountURLSync function.
2016-10-17 09:57:35 -07:00
Greg Neagle
8fa668edb6
Catch KeyError exception when attempting to import NetFS's NetFSMountURLSync function.
2016-10-14 14:27:04 -07:00
Greg Neagle
84271f6bb8
Bumping version.plist to 2.8.2 for upcoming bug-fix release
2016-10-12 16:34:06 -07:00
Greg Neagle
4aab802442
PyLint cleanups for munkiimport
2016-10-12 15:19:32 -07:00
Greg Neagle
78d58b58a5
Restore default text input in munkiimport under 10.6
2016-10-12 15:00:01 -07:00
Greg Neagle
0269b1a89c
Fix for 'ImportError: cannot import name kCFNetworkProxiesHTTPSEnable' on older versions of OS X
2016-10-12 10:34:50 -07:00
Greg Neagle
778d66b08c
Merge branch 'master' of https://github.com/munki/munki
2016-10-12 10:26:48 -07:00
Greg Neagle
23672ca187
Fix for ImportError: No module named NetFS error with munkiimport under OS X < 10.8
2016-10-12 10:26:34 -07:00
Samuel Keeley
52ad24583c
Catch unicode error messages for downloads
...
On Yosemite the error message can have a `'` in it.
```
Downloading Command_Line_Tools_OS_X_10.10_for_Xcode_7.2-7.2.0.0.1.1447826929.dmg...
0..20.WARNING: Download of Command Line Tools for Xcode failed: Error -1001: The operation couldn't be completed. (NSURLErrorDomain error -1001.)
ERROR: Unexpected error in updatecheck:
Traceback (most recent call last):
File "/usr/local/munki/managedsoftwareupdate", line 1052, in <module>
main()
File "/usr/local/munki/managedsoftwareupdate", line 743, in main
client_id=options.id.decode('UTF-8'))
File "/usr/local/munki/munkilib/updatecheck.py", line 3027, in check
installinfo)
File "/usr/local/munki/munkilib/updatecheck.py", line 2172, in processManifestForKey
item, cataloglist, installinfo)
File "/usr/local/munki/munkilib/updatecheck.py", line 1993, in processInstall
iteminfo['note'] = 'Download failed (%s)' % errmsg
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 33: ordinal not in range(128)
```
2016-10-05 11:02:47 +02:00
gmarnin
c68204d167
Fix for https://github.com/munki/munki/issues/666
2016-09-29 14:22:33 -04:00
Carl Windus
5d3521c3d7
Changed display-included-manifests to expand-included-manifests
2016-09-29 13:26:35 +10:00
Carl Windus
196eaaccf0
Added display_included_manifest()
2016-09-29 10:18:23 +10:00
Greg Neagle
b076916c0b
Fix for mounting repos under /Volumes in Sierra.
2016-09-23 16:22:31 -07:00
Greg Neagle
9a3cff59f5
Remove strange extra characters that got inserted
2016-09-22 17:36:06 -07:00
Greg Neagle
e1983a19b4
Attempt to provide some progress feedback when installing/removing Adobe CC 2015.X products using the new HD format.
2016-09-22 17:17:46 -07:00
Samuel Keeley
fc2a70f121
catch the exception if /var/run/syslog is not listening
2016-09-14 14:26:24 -07:00
Greg Neagle
1a48bac756
Additional debug logging in appleupdates.py; more consistent way of getting product IDs in GetAvailableUpdateProductIDs
2016-09-06 12:15:37 -07:00
Greg Neagle
475c40287e
Better detect and handle failed Apple update download sessions
2016-09-06 11:19:17 -07:00