Wrap precache code

This commit is contained in:
aysiu
2018-05-04 15:50:31 -07:00
committed by GitHub
parent 1aef5d9a77
commit 2db087ebb5
+4 -2
View File
@@ -243,10 +243,12 @@ def process_optional_install(manifestitem, cataloglist, installinfo):
iteminfo['uninstallable'] = (
item_pl.get('uninstallable', False)
and (item_pl.get('uninstall_method', '') != ''))
# If the item is a precache item, get that precache flag and also the basename of the installer item
# If the item is a precache item, get that precache flag
# and also the basename of the installer item
if item_pl.get('installer_item_location') and item_pl.get('precache'):
iteminfo['precache'] = True
iteminfo['installer_item'] = download.get_url_basename(item_pl['installer_item_location'])
iteminfo['installer_item'] = \
download.get_url_basename(item_pl['installer_item_location'])
iteminfo['installer_item_size'] = \
item_pl.get('installer_item_size', 0)
iteminfo['installed_size'] = item_pl.get(