add pool_whatmatchesdep and selection_make_deps to query for packages intersecting a dependency