Commit Graph

877 Commits

Author SHA1 Message Date
Greg Neagle bb7f2c8e69 Merge branch 'master' of https://code.google.com/p/munki 2011-11-17 19:29:48 -08:00
Justin McWilliams 571a6a3f38 Don't log repetitive lines when running softwareupdate; only log if the stdout
has changed since the last loop iteration.

This should change things like:

Nov 16 13:12:03 Registering updated applications…
...
Nov 16 13:12:19 Registering updated applications…
Nov 16 13:12:19 Registering updated applications…
Nov 16 13:12:20 Registering updated applications…
Nov 16 13:12:20 Registering updated applications…
Nov 16 13:12:21 Registering updated applications…
Nov 16 13:12:21 Registering updated applications…
Nov 16 13:12:22 Registering updated applications…
Nov 16 13:12:22 Writing package receipts…
Nov 16 13:12:23 Writing package receipts…
Nov 16 13:12:23 Writing package receipts…
Nov 16 13:12:24 Writing package receipts…
Nov 16 13:12:24 Writing package receipts…
Nov 16 13:12:25 Writing package receipts…
Nov 16 13:12:25 Writing package receipts…
...
Nov 16 13:12:59 Writing package receipts…

To simply:

Nov 16 13:12:03 Registering updated applications…
Nov 16 13:12:22 Writing package receipts…
2011-11-17 14:34:34 -05:00
Justin McWilliams 95f162e750 Don't log repetitive lines when running softwareupdate; only log if the stdout has changed since the last loop iteration.
This should change things like:

Nov 16 13:12:03 Registering updated applications…
...
Nov 16 13:12:19 Registering updated applications…
Nov 16 13:12:19 Registering updated applications…
Nov 16 13:12:20 Registering updated applications…
Nov 16 13:12:20 Registering updated applications…
Nov 16 13:12:21 Registering updated applications…
Nov 16 13:12:21 Registering updated applications…
Nov 16 13:12:22 Registering updated applications…
Nov 16 13:12:22 Writing package receipts…
Nov 16 13:12:23 Writing package receipts…
Nov 16 13:12:23 Writing package receipts…
Nov 16 13:12:24 Writing package receipts…
Nov 16 13:12:24 Writing package receipts…
Nov 16 13:12:25 Writing package receipts…
Nov 16 13:12:25 Writing package receipts…
...
Nov 16 13:12:59 Writing package receipts…

To simply:

Nov 16 13:12:03 Registering updated applications…
Nov 16 13:12:22 Writing package receipts…
2011-11-17 14:30:55 -05:00
Justin McWilliams 19fbb4ed56 Case-insensitive sort MSU GUI update list, preferring forced install items, then preferring display_name to name. 2011-11-17 12:50:16 -05:00
Greg Neagle 8fc6025a1f Bumped version in version.plist to 0.8.1 so that future builds have correct version info. 2011-11-11 09:43:58 -08:00
Greg Neagle 7ea5ed9dac When installing packages, set restartflag to True if pkginfo declares a restart is needed, even if the package itself does not. 2011-11-11 09:40:06 -08:00
Justin McWilliams 1930c76981 Don't crash if (minimum|maximum)_os_version pkginfo configs are present but empty, instead just assume there is no mix/max. 2011-11-09 12:12:42 -05:00
Justin McWilliams 06801d2ef7 Reduce the likihood of a lingering /var/run/com.googlecode.munki.ManagedSoftwareUpdate by sleeping for 1/2 a second (instead of .1) and using open() instead of subprocess+touch to write the file. 2011-11-08 12:42:41 -05:00
Greg Neagle 8bd3bd327f Merge branch 'master' of https://code.google.com/p/munki 2011-11-01 10:16:18 -07:00
Greg Neagle 25c87bdddf Fix for makepkginfo for really old package formats with missing version info. 2011-11-01 10:16:10 -07:00
Justin McWilliams e5af29757b Encode objc.pyobjc_unicode error messages in FoundationPlist to ascii, stripping all unicode characters, to avoid explosions. 2011-10-28 14:37:38 -04:00
John Randolph 288dbc880a patch for when Apple APIs return None instead of str objects 2011-10-21 15:09:53 -04:00
Justin McWilliams c803e1ba89 Remove printing preflight stderr, as it's been moved to runScript. 2011-10-17 18:48:15 -04:00
Justin McWilliams c938311b2c Move "Starting managedsoftwareupdate run" to before executing preflight,
"Ending ..." to after executing postflight, and add the runtype to the starting
msg so it's clear who/what is executing Munki and for what reason.
2011-10-14 16:19:38 -04:00
Greg Neagle a41af3b7f9 Revert "Beginning of refactor for getResource/curl methods"
This reverts commit 821e9072cc.
2011-09-29 16:39:57 -07:00
Greg Neagle 821e9072cc Beginning of refactor for getResource/curl methods 2011-09-29 16:24:23 -07:00
Greg Neagle d6ae15245c Add USER to environment variables before running /usr/sbin/installer. This works around an issue in some installer scripts that use the gneagle environment variable. v0.8.0.1351.0 2011-09-28 09:45:02 -07:00
Greg Neagle d0ca63a43b Merge branch 'status-launch-and-cache-on-checksum' 2011-09-27 09:26:12 -07:00
Greg Neagle ff43952683 Added tar2pkg.py to tools 2011-09-27 09:26:00 -07:00
Justin McWilliams 224db09684 runScript should not crash Munki if the script it's attempting to run does not exist or there are other issues executing it. 2011-09-23 14:12:16 -04:00
Greg Neagle 31dee71a55 Fix for issue when MSU.app is launched by managedsoftwareupdate more than one minute after an updatecheck run has completed (due to unattended installs, apple update checking, or combo) and add AppleUpdates to ManagedSoftwareReport.plist 2011-09-20 20:01:55 -07:00
Greg Neagle cab84a49d2 Check SuppressAutoInstall value before attempting unattended installs 2011-09-19 10:13:44 -07:00
Justin McWilliams 72dfa5bce0 s/Content-Type/Content-Length/ 2011-09-19 10:11:56 -04:00
Greg Neagle fd1622edfa Don't kill loginwindow if we're doing checkandinstallatstartup and a restart is not required; launchd will restart us. 2011-09-16 17:05:59 -07:00
Justin McWilliams 56216d1db3 Don't sleep for .1 seconds in between reading HTTP header lines. 2011-09-16 18:02:21 -04:00
Greg Neagle e999eea016 Moved /private/etc/paths.d/munki file from munki_core to munki_admin pkg. 2011-09-16 10:50:23 -07:00
Justin McWilliams 79cec41552 Fix CPU owning for curl downloads while on slow internet connections when Content-Length header is not present.
App Engine Blobstore does not send Content-Type, which means targetsize is always 0 and therefore the conditional that calculates and reports download progress is never entered, and the existing sleep location is never hit. On slow internet connections, this means that CPU spikes as proc.poll() is being called far more than curl is downloading.

Fix this by moving time.sleep(0.1) into the main curl while loop, where it'll execute on every loop iteration. That means we have a small sleep even while headers are downloading/etc, but that's not a big deal given it's a 1/10th of a second.
2011-09-15 18:39:49 -04:00
Greg Neagle 284fa8ab52 When building munki_core.pkg, add munki file to /etc/paths.d so munki tools are in path. 2011-09-15 08:37:06 -07:00
Rob Middleton a572573fbb Reset report data structure before any calls that add warnings/errors. 2011-09-15 18:27:10 +10:00
Rob Middleton b22e9de11a Back out another dual trigger file - in logouthelper 2011-09-15 18:12:22 +10:00
Greg Neagle 833d509c94 Fix - send update notification to MSU.app after an unattended install; fix method signature for utils.runExternalScript 2011-09-14 16:43:50 -07:00
Greg Neagle a140202f42 Added .DS_Store files to .gitignore 2011-09-14 15:40:25 -07:00
Greg Neagle 2acd81991b Merge branch 'status-launch-and-cache-on-checksum' of https://code.google.com/p/munki into status-launch-and-cache-on-checksum 2011-09-14 15:36:17 -07:00
Greg Neagle 239663353f Fix issues in munki.py when writing trigger files; edits to launchdaemons so managedsoftwareupdate-loginwindow runs only when a trigger file is present 2011-09-14 15:31:42 -07:00
Greg Neagle 765bf5094f Removed new MSU launch trigger file; combining with existing trigger 2011-09-14 10:39:31 -07:00
Rob Middleton 570c0f7ad4 Allow preflight/postflight to run so long as the permissions are not weaker than managedsoftwareupdate. 2011-09-14 21:31:31 +10:00
Greg Neagle 25a9315cba mount_nfs fix for munkiimport and manifestutil 2011-09-13 15:14:32 -07:00
Greg Neagle cb3d75eb45 Merge remote branch 'lfronius/master' 2011-09-09 09:04:35 -07:00
Greg Neagle 116569f4fd Updated MSU.app build scripts to get Git revision only for the MSU.xcode.project tree and to not fail if GitRevision is already in Info.plist 2011-09-07 15:14:56 -07:00
Rob Middleton f82da7a1f8 com.googlecode.munki.MunkiStatusLogin.plist -> Logout.plist 2011-09-08 07:42:57 +10:00
Rob Middleton 57b543de88 use getxattr function in all relevant places 2011-09-08 07:22:30 +10:00
Rob Middleton c903723dbd add brief logging + squash a wrong name 2011-09-07 23:18:52 +10:00
Rob Middleton ed27d180ed Do not redownload or check payload files with web server if hash of cached file matches hash in catalog. 2011-09-07 22:49:00 +10:00
Rob Middleton cb5e0076d0 Speed launch of MSU.app status mode to cover the login window following logout install actions. 2011-09-07 21:23:48 +10:00
Greg Neagle e334b9eb13 Changed woefully out-of-date READ ME FIRST.txt to refer to wiki documentation 2011-09-06 15:57:15 -07:00
Lars Fronius e45f31fe07 Why shouldn't manifestutil and munkiimport use nfs, and why shouldn't it be the same function for both? 2011-09-05 15:08:26 +02:00
Greg Neagle 61ebf4150c Add check for git to sanity checks in make_munki_mpkg.sh 2011-08-30 09:18:04 -07:00
Rob Middleton 737a022a3c add ptyexec to our built packages 2011-08-30 15:17:34 +10:00
Greg Neagle d821429830 Change sample munki repo URLs to use example.com in keeping with RFC 2606: http://tools.ietf.org/html/rfc2606 2011-08-26 17:12:14 -07:00
Greg Neagle 01f2a51f71 Removed code/tools/makeChoices.py; this functionality is better met with /usr/sbin/installer (10.6.6+) 2011-08-26 17:08:34 -07:00