Skip to content
Permalink
Browse files

Also precache items where precache=True and needs_update=True

  • Loading branch information...
gregneagle committed Jan 3, 2019
1 parent 0bd2022 commit 0850f95a44aae5311eed0944e72ad853eab721e5
Showing with 4 additions and 2 deletions.
  1. +4 −2 code/client/munkilib/updatecheck/download.py
@@ -368,10 +368,12 @@ def _installinfo():

def _items_to_precache(install_info):
'''Returns a list of items from InstallInfo.plist's optional_installs
that have precache=True and installed=False'''
that have precache=True and (installed=False or needs_update=True)'''
optional_install_items = install_info.get('optional_installs', [])
precache_items = [item for item in optional_install_items
if item.get('precache') and not item.get('installed')]
if item.get('precache')
and (not item.get('installed')
or item.get('needs_update'))]
return precache_items


0 comments on commit 0850f95

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