def isItemInInstallInfo(manifestitem_pl, thelist, vers=''):
    """Determines if an item is in a manifest plist.

    Returns True if the manifest item has already
    been processed (it's in the list) and, optionally,
    the version is the same or greater.
    """
    for item in thelist:
        try:
            if item['name'] == manifestitem_pl['name']:
                if not vers:
                    return True
                #if the version already installed or processed to be
                #installed is the same or greater, then we're good.
                if item.get('installed') and (compareVersions(
                        item.get('installed_version'), vers) in (1, 2)):
                    return True
                if (compareVersions(
                        item.get('version_to_install'), vers) in (1, 2)):
                    return True
        except __HOLE__:
            # item is missing 'name', so doesn't match
            pass

    return False
dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/isItemInInstallInfo