aboutsummaryrefslogtreecommitdiff
path: root/src/clients/adjutrix/keywords_graph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/adjutrix/keywords_graph.cc')
-rw-r--r--src/clients/adjutrix/keywords_graph.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/clients/adjutrix/keywords_graph.cc b/src/clients/adjutrix/keywords_graph.cc
index 47ccd5e..1be0e34 100644
--- a/src/clients/adjutrix/keywords_graph.cc
+++ b/src/clients/adjutrix/keywords_graph.cc
@@ -37,8 +37,6 @@ using std::cout;
using std::cerr;
using std::endl;
-using namespace paludis;
-
namespace
{
struct CompareByStringLength
@@ -64,7 +62,14 @@ namespace
std::tr1::shared_ptr<const VersionSpecCollection> versions(repo.version_specs(package));
FindUnusedPackagesTask task(&e, &repo);
std::tr1::shared_ptr<const PackageDatabaseEntryCollection> packages(e.package_database()->query(
- query::Matches(PackageDepSpec(stringify(package) + "::" + stringify(repo.name()))),
+ query::Matches(PackageDepSpec(
+ std::tr1::shared_ptr<QualifiedPackageName>(new QualifiedPackageName(package)),
+ std::tr1::shared_ptr<CategoryNamePart>(),
+ std::tr1::shared_ptr<PackageNamePart>(),
+ std::tr1::shared_ptr<VersionRequirements>(),
+ vr_and,
+ std::tr1::shared_ptr<SlotName>(),
+ std::tr1::shared_ptr<RepositoryName>(new RepositoryName(repo.name())))),
qo_group_by_slot));
std::tr1::shared_ptr<const PackageDatabaseEntryCollection> unused(task.execute(package));