commit c34d17604d10d4d4a35b243bb56a8b8e45f9444a Author: Greg Neagle Date: Tue Jan 15 11:54:40 2019 -0800 If an item to be precached contains PackageURL or PackageCompleteURL keys, store those for use by the precaching agent. diff --git a/code/client/munkilib/updatecheck/analyze.py b/code/client/munkilib/updatecheck/analyze.py index b2e1118e..9fbd7a7d 100644 --- a/code/client/munkilib/updatecheck/analyze.py +++ b/code/client/munkilib/updatecheck/analyze.py @@ -253,8 +253,9 @@ def process_optional_install(manifestitem, cataloglist, installinfo): item_pl['licensed_seats_available'])): iteminfo['precache'] = True iteminfo['installer_item_location'] = item_pl['installer_item_location'] - if 'installer_item_hash' in item_pl: - iteminfo['installer_item_hash'] = item_pl['installer_item_hash'] + for key in ['installer_item_hash', 'PackageCompleteURL', 'PackageURL']: + if key in item_pl: + iteminfo[key] = item_pl[key] iteminfo['installer_item_size'] = \ item_pl.get('installer_item_size', 0) iteminfo['installed_size'] = item_pl.get(