def _find_unpurge_targets(desired):
    return [
        x for x in desired
        if x in __salt__['pkg.list_pkgs'](purge_desired=True)
    ]
Find packages which are marked to be purged but can't yet be removed
dataset/ETHPy150Open saltstack/salt/salt/states/pkg.py/_find_unpurge_targets