Commit Graph

1230 Commits

Author SHA1 Message Date
Hannes Juutilainen
df9e9202fb Merge branch 'master' into development
* master:
  Fix makepkginfo --force_install_after_date to create a date object for the pkginfo plist instead of a string.
  If a force_install_after_date install is near/past it's due date, logouthelper should be started (the machine should be forcefully rebooted) even if someone is logged in but the session is at the loginwindow (fast user switching).  Force should not be "force unless x, y, z".
  Add --repo_path and --repo_url options to munkiimport to allow the user to override the default repo_path and repo_url options set via munkiimport --configure at runtime
  If we are about to do an install at the loginwindow, check to see if FileSyncAgent.app is running. This might be HomeSync running during a login process. If so, don't install.
  Change apple_item logic in updatecheck.processRemoval to match that in updatecheck.processInstall. Specifically, allow admin to override detection of apple_item by explictly setting it in the pkginfo.
  Update version.plist to 0.9.0 for next development round.
2013-05-03 08:22:33 +03:00
Greg Neagle
588b48f141 Merge branch 'master' of https://code.google.com/p/munki 2013-04-24 17:01:49 -07:00
Greg Neagle
8558292a63 Fix makepkginfo --force_install_after_date to create a date object for the pkginfo plist instead of a string. 2013-04-24 17:01:35 -07:00
ogle
72662f2614 If a force_install_after_date install is near/past it's due date, logouthelper should be started (the machine should be forcefully rebooted) even if someone is logged in but the session is at the loginwindow (fast user switching). Force should not be "force unless x, y, z". 2013-04-19 22:25:08 +00:00
Greg Neagle
614473d0d2 Merge branch 'munkiimport_repopath_0.8.4' of https://code.google.com/r/adamjreed-munki 2013-04-18 14:16:37 -07:00
Adam Reed
00e6afc33c Add --repo_path and --repo_url options to munkiimport to allow the user to override the default repo_path and repo_url options set via munkiimport --configure at runtime 2013-04-18 21:10:01 +10:00
Greg Neagle
52fd32f0dc If we are about to do an install at the loginwindow, check to see if FileSyncAgent.app is running. This might be HomeSync running during a login process. If so, don't install. 2013-04-15 16:01:24 -07:00
Greg Neagle
fc8c36d1fa Change apple_item logic in updatecheck.processRemoval to match that in updatecheck.processInstall. Specifically, allow admin to override detection of apple_item by explictly setting it in the pkginfo. 2013-04-11 14:28:40 -07:00
Greg Neagle
52468cc6c2 Update version.plist to 0.9.0 for next development round. 2013-04-08 10:02:43 -07:00
Hannes Juutilainen
fe950f12c1 Merge branch 'master' into development
* master:
  Fix manifestutil remove-catalog usage message.
  Unicode filename fixes for makecatalogs.
  Better info/warning messages when Apple update metadata conflicts with existing RestartAction
2013-04-08 09:03:01 +03:00
Greg Neagle
396e3e5d79 Fix manifestutil remove-catalog usage message. 2013-04-05 13:41:57 -07:00
Greg Neagle
bb3ff68892 Unicode filename fixes for makecatalogs. 2013-04-04 12:08:26 -07:00
Greg Neagle
7882edfbc1 Better info/warning messages when Apple update metadata conflicts with existing RestartAction 2013-04-02 12:17:08 -07:00
Hannes Juutilainen
70e713e1d3 Merge branch 'master' into development
* master:
  Ensure AppleUpdates.plist is removed if there are no available Apple updates. Update appleupdates_test.py to reflect this and a previous commit.
  Updated Localizable.strings to match recent UI changes.
2013-03-26 09:42:15 +02:00
Greg Neagle
c612259ca1 Merge https://code.google.com/r/hardrain79-russian-translation 2013-03-18 08:12:27 -07:00
Greg Neagle
2d4bafe694 Ensure AppleUpdates.plist is removed if there are no available Apple updates. Update appleupdates_test.py to reflect this and a previous commit. 2013-03-17 10:49:51 -07:00
Hannes Juutilainen
8ca86a0d1c Added support for volume mount points
Munkiimport can now take volume mount points as arguments
(/Volumes/SomeApp/) and resolve them to a disk image file.
2013-03-14 15:16:53 +02:00
Hannes Juutilainen
1093f6a55f Minor refactoring and documentation 2013-03-14 15:15:24 +02:00
Hannes Juutilainen
f3da0ce63a Added use_existing_mounts argument for mountdmg()
This should ensure that existing callers of this method do not get
modified behavior.
2013-03-14 15:10:14 +02:00
Soldatenko Rostislav
15b18c1904 Updated Localizable.strings to match recent UI changes. 2013-03-14 15:38:01 +04:00
Hannes Juutilainen
24d43c22da makepkginfo supports creating installer items from a mount point
makepkginfo now accepts a mount point of a disk image (/Volumes/Disk Image). Mount point will resolve to a dmg file and that file will be used as an input item. Additionally -i/--itemname option takes absolute paths for easily defining items to be copied.
2013-03-13 13:51:08 +02:00
Hannes Juutilainen
8f458abd28 makepkginfo now checks for existing mountpoints
makepkginfo checks if the disk image is already mounted and if so, uses the existing mount point without trying to attach the image a second time.
2013-03-13 11:04:48 +02:00
Greg Neagle
220cf91a77 Don't remove an item if another item that depends on it failed to be removed. This is the complimentary behavior to issue 217, which dealt with installs 2013-03-12 19:16:51 -07:00
Greg Neagle
b28677dd34 If preinstall_script exits non-zero or installation fails, add item to skipped installs; for each install, if a prerequisite was skipped, don't install. Addresses issue 217. 2013-03-12 16:48:27 -07:00
Greg Neagle
0bb162dbfc Some Unicode/UTF-8 fixes for munkiimport. 2013-03-12 11:03:06 -07:00
Greg Neagle
699decfe00 Use consistent format when an item's version cannot be determined and is noted as '(newer than ...)' 2013-03-11 15:46:29 -07:00
Greg Neagle
1df439ef37 Store original Apple name for an update and use that when determining success of an Apple update install; new metadata functionality allows admins to override the display_name, which could have caused determining success of an Apple update install to fail, since it would have been looking for the wrong name. 2013-03-11 11:03:13 -07:00
Greg Neagle
1ac91e8b44 Patch from rmiddleton for updatecheck.isItemInstallInfo() -- fixes issue with multiple updates with the same name (but different versions) that need to be applied in a single session. 2013-03-11 08:18:08 -07:00
Greg Neagle
cce11a4fc0 Better error checking when processing receipts and installs items when building our catalogDB; pylint cleanups 2013-03-08 14:14:38 -08:00
Greg Neagle
a21a4b1acc When skipping Apple Software updates because there is an update from Apple in InstallInfo.plist, remove AppleUpdates.plist to prevent MSU.app and logouthelper from presenting force_install_after_date warnings for items it will not be able to install because Munki updates are blocking Apple updates. 2013-03-08 13:52:01 -08:00
Greg Neagle
f8f558edc5 logouthelper now properly checks both InstallInfo.plist and AppleUpdates.plist for 'force_install_after_date' items. 2013-03-08 13:28:46 -08:00
Greg Neagle
dbca31a486 Fix dumb copy-and-paste error in last commit that caused munkiimport to crash with NameError: global name 'item_version' is not defined 2013-03-06 21:42:44 -08:00
Greg Neagle
45de2d3b21 Changes to munkiimport: 1) Always append version number to uploaded dmg or pkg if not there originally; code clean up around the renaming. 2013-03-06 16:41:16 -08:00
Greg Neagle
000d1b969a PyLint cleanups in munkilib/installer.py. 2013-03-02 21:13:56 -08:00
Hannes Juutilainen
757a72d5ee Respect "version_comparison_key" when determining pkginfo version 2013-02-27 09:57:49 +02:00
Heig Gregorian
4847006300 Minor code clean-up, no functional changes 2013-02-22 17:17:26 -08:00
Heig Gregorian
ed9a8b0913 Renamed updatecheck.getAppleUpdateMetaData to updatecheck.getPrimaryManifestCatalogs to reflect actual function; added function parameter to specify whether or not the primary client manifest and catalogs should be re-downloaded before parsing for apple_update_metadata
Additionally, ensure that MACHINE dict is populated regardless of the
runtype as it may impact how a primary manifest is discovered.
2013-02-22 15:29:15 -08:00
Greg Neagle
8bac537975 When getting blocking_applications from an Apple update dist file, de-dup the list of application-ids before finding matching applications. 2013-02-21 18:44:37 -08:00
Greg Neagle
141f3f24c6 Merge branch 'master' of https://code.google.com/p/munki 2013-02-19 17:09:53 -08:00
Greg Neagle
98de6685cc Merge of https://code.google.com/r/theheig-conditionals/ apple-update-metadata: Adds support for Munki-style metadata to Apple updates. 2013-02-19 17:09:40 -08:00
Heig Gregorian
27cbf06058 Minor inline comments added for clarification's sake 2013-02-19 15:15:11 -08:00
Heig Gregorian
53fc136d28 unattended_install in metadata no longer applied if a RestartAction exists (in original item or metadata); unattended Apple updates are skipped if a blocking application is running; installlist, holding Apple update installation results, only holds items which are eligible for unattended installation
Mostly, this commit involves improving upon expected functionality of
an unattend Apple update installation.

Munki performs a "suppressed" Apple software update check post
installation run if a GUI user is logged in such that the user will be
prompted to install any remaining updates.  This is inline with munki's
behavior for munki packages.

blocking_applications can now accept items which are full paths in case
an admin wishes to be specific regarding the location of a running,
blocking application and/or executable.

Also of note is a fix for previously broken blocking_application
checking for Apple updates, both in MSU and managaedsoftwareupdate.
2013-02-19 13:32:09 -08:00
Greg Neagle
8ec6291330 Add Russian to the localization build steps and gitignore the ru.lproj/MainMenu.xib. 2013-02-19 08:40:48 -08:00
Greg Neagle
3f612b9735 Merge https://code.google.com/r/hardrain79-russian-translation 2013-02-19 08:30:47 -08:00
Soldatenko Rostislav
4b23101487 Fixed some minor typos. 2013-02-19 13:39:20 +04:00
Greg Neagle
709c628838 Update to German language localization. Thanks to Steve Kueng. 2013-02-17 06:10:58 -08:00
Heig Gregorian
a52acd73f8 Overall clean-up of adding install items to the list of parameters supplied in 'su_options' 2013-02-16 14:08:51 -08:00
Heig Gregorian
b55c1c30af Minor message and comment update
Comment regarding limitations to installing Apple updates removed from
managedsoftwareupdate.  Warning message regarding missing
'installs/receipts' on import of an '--apple-update' item is not
displayed.
2013-02-16 13:20:25 -08:00
Heig Gregorian
cd3c69b5a2 'unattended_install' and 'force_install_after_date' actions for Apple update are honored. Overall, functions were add/modified to support this effort. 2013-02-15 18:34:28 -08:00
Soldatenko Rostislav
e5b2026967 Beta 1. 2013-02-15 16:34:32 +04:00