Skip to content

Commit

Permalink
Quiet warnings about metadata for MSU_UPDATE_s
Browse files Browse the repository at this point in the history
  • Loading branch information
gregneagle committed Mar 5, 2021
1 parent 8a0a234 commit 7087bc2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions code/client/munkilib/appleupdates/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,15 @@ def cache_update_metadata(self, product_ids):
display.display_status_minor(
'Caching metadata for product ID %s', product_key)
if product_key not in catalog['Products']:
display.display_warning(
'Could not cache metadata for product ID %s'
% product_key)
if product_key.startswith("MSU_UPDATE_"):
# BigSur+ updates don't have metadata in the sucatalog
display.display_info(
'Skipping metadata caching for product ID %s'
% product_key)
else:
display.display_warning(
'Could not cache metadata for product ID %s'
% product_key)
continue
product = catalog['Products'][product_key]
if 'ServerMetadataURL' in product:
Expand Down

0 comments on commit 7087bc2

Please sign in to comment.