Notes:
- Needs documentation about how risky this is, and how it should only be used
for simple packages that are known to be safely installed while app is running.
- If notification is popped up, it will contain the unattended install; if
notification is not due to be popped up the unattended install will be installed
immediately.
- Only works in --auto mode (which is what launchd execs); I will test more tomorrow with manual runs, as we may be able to do this before --installonly too.
git-svn-id: http://munki.googlecode.com/svn/branches/unattended-installs@809 a4e17f2e-e282-11dd-95e1-755cbddbdd66
add --description and --displayname args to set description and display_name pkginfo plist keys.
git-svn-id: http://munki.googlecode.com/svn/trunk@795 a4e17f2e-e282-11dd-95e1-755cbddbdd66
Instead of stripping x parts off the tuple, simply trim all lone trailing 0's from the version.
Examples:
10.0.0.0 -> 10.0
10.0.0.1 -> 10.0.0.1
10.0.0.1.0.0 -> 10.0.0.1
10.0.0-abc1 -> 10.0.0-abc1
10.0.0-abc1.0 -> 10.0.0-abc1
git-svn-id: http://munki.googlecode.com/svn/trunk@793 a4e17f2e-e282-11dd-95e1-755cbddbdd66
makecatalogs now should be able to run on non-OS X platforms as long as there is a plistlib module available. (Untested)
git-svn-id: http://munki.googlecode.com/svn/trunk@785 a4e17f2e-e282-11dd-95e1-755cbddbdd66
1) fix OSError because nonexistent file is attempted to be read if HTTP status=200 but response yields no download; this happens if local Cache package is *newer* than package on the server (curl receives 200 but doesn't download); instead raise HTTPError.
2) In the event of a curl() download error, delete any existing cache files
related to the failed download (destination or tmp names). This is basically
just resetting state after any download failures that aren't resume related,
one of those failures being the temp download file doesn't exist.
This fixes a problem where if the destination exists and the date (header:
If-Modified-Since) is newer than on the server (header: Last-Modified), the curl
binary does not ever download the older file. In this case Munki never has a
.download temp file, so it can't overwrite the original/newer file. A susequent
Munki execution will download the older server file.
git-svn-id: http://munki.googlecode.com/svn/trunk@783 a4e17f2e-e282-11dd-95e1-755cbddbdd66
getHTTPfileIfChangedAtomically now returns a boolean indicating if the item was downloaded (True) or just returned from the local cache (False). This way, we only do the expensive SHA-256 checksum comparison on the initial download.
getHTTPfileIfChangedAtomically now raises exceptions if it runs into trouble, as does download_installeritem().
git-svn-id: http://munki.googlecode.com/svn/trunk@764 a4e17f2e-e282-11dd-95e1-755cbddbdd66
processManifestForOptionalInstalls(), processManifestForManagedUpdates(), processManifestForInstalls(), and processManifestForRemovals(), which ll shared a very similar structure, have been refactored and replaced with processManifestForKey().
Various pylint cleanups: marking unused variables, global variable names are now all CAPS, added some docstrings,
Removed all remaining references to aliases. (support for aliases was removed a long time ago, but some references still remained in the code)
Removed support for "modifies" dependency type, which was deprecated months ago.
git-svn-id: http://munki.googlecode.com/svn/trunk@748 a4e17f2e-e282-11dd-95e1-755cbddbdd66
Removed readPlist(filepath) from MSUStatusWindowController; it now uses the equivalent function from FoundationPlist.
Other minor cleanups.
git-svn-id: http://munki.googlecode.com/svn/trunk@739 a4e17f2e-e282-11dd-95e1-755cbddbdd66
appleupdates: pylint cleanup; provide installed_size data for Managed Software Update display
managedsoftwareupdate: move "Checking for available Apple Software Updates..." message to appleupdates.checkForSoftwareUpdates()
makepkginfo: fix installer_item_size determination when we add up the contents of a directory (was bytes, now Kbytes like everything else)
git-svn-id: http://munki.googlecode.com/svn/trunk@725 a4e17f2e-e282-11dd-95e1-755cbddbdd66