Commit Graph

1034 Commits

Author SHA1 Message Date
Heig Gregorian
e1504af2b0 Merge branch 'master' into installer-copy_as 2012-06-29 11:04:07 -07:00
Greg Neagle
7d3d7d1ac8 Add support for uninstallcheck_script; fix some bad variable names 2012-06-29 08:39:23 -07:00
Greg Neagle
2ac7f26720 Add support for 'installcheck_script' in pkginfo 2012-06-28 11:08:22 -07:00
Greg Neagle
391fda8c23 Receipts marked with optional=true are treated as if they are installed when checking for installed state. 2012-06-28 09:55:50 -07:00
Greg Neagle
b4eb55cd84 makepkginfo now warns when provided a read/write disk image, and does not generate an installer_item_hash. 2012-06-27 16:06:09 -07:00
Greg Neagle
fa5052e247 Merge branch 'master' of https://code.google.com/p/munki 2012-06-25 15:00:59 -07:00
Greg Neagle
cc0ac78964 When matching blocking_applications against running processes, do not match executables inside a bundle, but not in Contents/MacOS. 2012-06-25 15:00:48 -07:00
Heig Gregorian
58dbc9fb95 Added check for 'destination_item' when processing 'remove_copied_items' so that the correct item is removed. 2012-06-22 09:47:20 -07:00
Justin McWilliams
12b3957a53 New Preferences class with ManagedInstallsPreferences and SecureManagedInstallsPreferences subclasses, making it easier for admins to manage preferences from preflight/postflight scripts. This is especially helpful now that reading from and manipulating plists on disk is no longer reliable starting with 10.8. This class functions well on 10.6+, though (possibly even 10.5).
Example:

from munkilib import munkicommon

regular_prefs = munkicommon.ManagedInstallsPreferences()
repo_url = regular_prefs.get('SoftwareRepoURL', '')
... make use of repo_url how you wish ...

secure_prefs = munkicommon.SecureManagedInstallsPreferences()
secure_prefs['AdditionalHttpHeaders'] = [list, of, headers]
2012-06-22 12:25:49 -04:00
Heig Gregorian
7289bfefa2 Doc inconsistancy fixed. 2012-06-21 07:55:12 -07:00
Heig Gregorian
75d385a45d Mostly variable renames to better illustrate the process, especially if a 'dest_item' has been provided
NOTE: 'copy_as' has been renamed to 'dest_item', serving as the
counterpart to 'source_item'.
2012-06-21 07:50:00 -07:00
Heig Gregorian
1991a12312 Provide method for copying an item from a mount point as something other than its 'source_item' name
Note that if an admin is to provide an alternate name using 'copy_as',
the corresponding 'installs' item (if provided) should match this name.
2012-06-20 20:32:56 -07:00
Greg Neagle
01a78cf732 In updatecheck.installedState(), if there is a problem with the installs or receipts data in the pkginfo item, return 1 to prevent marking the item as needing to be installed. Thanks to Heig Gregorian. 2012-06-12 13:29:37 -07:00
Greg Neagle
8d143025c5 Merge branch 'master' of https://code.google.com/p/munki 2012-06-08 15:05:10 -07:00
Greg Neagle
0ed46a42ee Get rid of menubar flash when MSU.app runs over the loginwindow; tweaks to appearance over Lion loginwindow 2012-06-08 15:05:05 -07:00
Justin McWilliams
a8c7bd9dc2 Log when managedsoftwareupdate is about to notify users with MSU GUI. 2012-06-07 15:53:08 -04:00
Greg Neagle
4b2e14ffe6 Merge branch 'master' of https://code.google.com/p/munki 2012-06-06 11:20:01 -07:00
Greg Neagle
277966aada New look for displaying Munki status window at the login window in Lion+ 2012-06-06 11:19:17 -07:00
Justin McWilliams
d2ae26c9fd Merge branch 'master' of https://code.google.com/p/munki 2012-06-06 14:12:36 -04:00
Justin McWilliams
d841599fb4 Add year and timezone offset to log output. 2012-06-06 14:12:02 -04:00
Greg Neagle
f62a2df314 Add Mountain Lion sucatalog to list of default Apple catalogs 2012-06-06 09:53:19 -07:00
Greg Neagle
6bbdde8b00 Fix WebView font issue re-introduced every time we edit the XIB 2012-06-04 16:19:32 -07:00
Heig Gregorian
8d28e3ec5e Merge branch 'master' into makepkginfo 2012-06-01 06:40:18 -07:00
Greg Neagle
61738f6712 Change messsage displayed when running an Adobe CS5 install since CS6 installs use the same code 2012-05-31 11:26:14 -07:00
Heig Gregorian
798c721ec6 Added option to specify uninstall method; '--uninstall_method' 2012-05-31 06:54:56 -07:00
John Randolph
4cddf73b2c bug:
If a force_install_date in InstallInfo was in the past, logouthelper will
advance it to NOW + 60 minutes and start ignoring InstallInfo upcoming
force_install_date values.

If the admin revises the old force_install_date to the future after
logouthelper has already run, logouthelper does not load the new
force_install_date and sticks with its new value.

This patch fixes this.
2012-05-30 19:05:40 -04:00
Heig Gregorian
f2bdb2a0d2 Specifying stand-alone --installer_environment options allows for the generation of the 'installer_environment' dict
This is similar to generating an 'installs' array of dicts.
2012-05-23 09:31:13 -07:00
Greg Neagle
f4baa87667 Added comment as to why we delete notes from pkginfo before adding to catalog. 2012-05-22 16:11:37 -07:00
Greg Neagle
a74ca2cf24 Merge branch 'makecatalogs' of https://code.google.com/r/theheig-conditionals 2012-05-22 16:09:03 -07:00
Greg Neagle
1841b79866 PyLint formatting cleanups 2012-05-22 15:39:14 -07:00
Heig Gregorian
ff7c8f990b Merge branch 'master' into makecatalogs 2012-05-22 14:49:11 -07:00
Greg Neagle
60feab1db6 Merge branch 'makepkginfo' of https://code.google.com/r/theheig-conditionals 2012-05-22 14:27:30 -07:00
Greg Neagle
30d924c7af Minor formatting changes; flatten valid manifest checks in getPrimaryManifest() 2012-05-22 14:09:53 -07:00
Heig Gregorian
5c54651577 Improved handling of empty 'installer_environment' 2012-05-22 13:32:34 -07:00
Heig Gregorian
84455e5ef3 Init installer_environment_dict in case its creation goes badly 2012-05-22 12:47:51 -07:00
Heig Gregorian
b4e908c952 Formatting update to stay at or under 80 columns 2012-05-22 11:02:32 -07:00
Heig Gregorian
3ccfedd931 Added --installer_environment option 2012-05-22 09:19:31 -07:00
Heig Gregorian
5b7db50146 Descriptions updated for '--autoremove, -requires, --update_for, and --notes'; blocking applications option is now --blocking_application to match similar singular usage of --catalog, etc. 2012-05-22 07:19:35 -07:00
Heig Gregorian
725fb0f4cc Abbreviated "PACKAGE" and "APPLICATION" metavars 2012-05-21 18:26:30 -07:00
Heig Gregorian
6682b863ca Added support for newly introduce 'minimum_munki_version' pkginfo key. 2012-05-21 18:22:05 -07:00
Heig Gregorian
c7cd0416ad Merge branch 'master' into makepkginfo 2012-05-21 18:08:34 -07:00
Heig Gregorian
b6bf37369d Cleaner '--force_install_after_date' help print out 2012-05-21 18:06:08 -07:00
Heig Gregorian
44a54bd69d Minor help formatting clean-up 2012-05-21 17:18:06 -07:00
Heig Gregorian
89afee0a17 Re-work of options in meaningful categories, complete with easier to read formatting
Also removed 'options.appdmg' check since this options no longer exists.
2012-05-21 16:54:24 -07:00
Nate
b5875fd21e Fixed more indents 2012-05-21 14:51:02 -04:00
Nate
3156ac77c2 Fixed tabs 2012-05-21 14:38:31 -04:00
Nate
ad7a690572 Made suggested changes 2012-05-21 14:09:17 -04:00
Nate
c8102cfaf3 Added support for serial numbers 2012-05-21 13:02:10 -04:00
Greg Neagle
065d3c0359 Add support for a 'minimum_munki_version' key for pkginfo items. Munki will not attempt to install an item if the current Munki version is less than the version specified by minimum_munki_version. 2012-05-17 20:06:22 -07:00
Heig Gregorian
343a43fdfe Reorganization of options printed from usage statement
Option list has become quite large and required some type of
organizational structure.  This is an attempt to provide that.
2012-05-15 20:26:41 -07:00