def _find_unpurge_targets(desired):
 return [x for x in desired if (x in __salt__['pkg.list_pkgs'](purge_desired=True))]

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 cant yet be removed because they are dependencies for other installed packages .