Skip to content
Permalink
Browse files

If an item to be precached contains PackageURL or PackageCompleteURL …

…keys, store those for use by the precaching agent.
  • Loading branch information...
gregneagle committed Jan 15, 2019
1 parent 20555c6 commit c34d17604d10d4d4a35b243bb56a8b8e45f9444a
Showing with 3 additions and 2 deletions.
  1. +3 −2 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(

0 comments on commit c34d176

Please sign in to comment.
You can’t perform that action at this time.