Copy category, developer and icon_name if availble to optional_installs in InstallInfo.plist for use by Managed Software Center.app

This commit is contained in:
Greg Neagle
2014-03-02 15:14:57 -08:00
parent 4b53219c6e
commit fd1c44e73c
+3
View File
@@ -1568,6 +1568,9 @@ def processOptionalInstall(manifestitem, cataloglist, installinfo):
iteminfo['description'] = item_pl.get('description', '')
iteminfo['version_to_install'] = item_pl.get('version', 'UNKNOWN')
iteminfo['display_name'] = item_pl.get('display_name', '')
for key in ['category', 'developer', 'icon_name']:
if key in item_pl:
iteminfo[key] = item_pl[key]
iteminfo['installed'] = someVersionInstalled(item_pl)
if iteminfo['installed']:
iteminfo['needs_update'] = (installedState(item_pl) == 0)