def lookForUpdates(itemname, cataloglist):

    munkicommon.display_debug1('Looking for updates for: %s', itemname)
    # get a list of catalog items that are updates for other items
    update_list = []
    for catalogname in cataloglist:
        if not catalogname in CATALOG.keys():
            # in case the list refers to a non-existent catalog
            continue

        updaters = CATALOG[catalogname]['updaters']
        # list comprehension coming up...
        update_items = [catalogitem['name']
                        for catalogitem in updaters
                        if itemname in catalogitem.get('update_for', [])]
        if update_items:
            update_list.extend(update_items)

    # make sure the list has only unique items:
    update_list = list(set(update_list))

    if update_list:
        # updates were found, so let's display them
        num_updates = len(update_list)
        # format the update list for better on-screen viewing
        update_list_display = ", ".join(str(x) for x in update_list)
        munkicommon.display_debug1(
            'Found %s update(s): %s', num_updates, update_list_display)

    return update_list
Looks for updates for a given manifest item that is either
dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/lookForUpdates