aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-04 00:34:11 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-04 00:34:11 +0000
commit87d5f5740bff547dbdd17f6d03498774fb65beb3 (patch)
treedacb372a338c62b396fcf51099cbfeaa4c146bff
parent2524ee6cba5b97bea816db292847c670592e8673 (diff)
downloadpaludis-87d5f5740bff547dbdd17f6d03498774fb65beb3.tar.gz
paludis-87d5f5740bff547dbdd17f6d03498774fb65beb3.tar.xz
Disambiguate adjutrix -w candidates if necessary
-rw-r--r--src/clients/adjutrix/what_needs_keywording.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/clients/adjutrix/what_needs_keywording.cc b/src/clients/adjutrix/what_needs_keywording.cc
index 0fe2d25..4f89c7b 100644
--- a/src/clients/adjutrix/what_needs_keywording.cc
+++ b/src/clients/adjutrix/what_needs_keywording.cc
@@ -73,7 +73,13 @@ int do_what_needs_keywording(NoConfigEnvironment & env)
for (CommandLine::ParametersIterator p(next(CommandLine::get_instance()->begin_parameters())),
p_end(CommandLine::get_instance()->end_parameters()) ; p != p_end ; ++p)
- d.add(std::tr1::shared_ptr<PackageDepAtom>(new PackageDepAtom(*p)));
+ {
+ if (std::string::npos == p->find('/'))
+ d.add(std::tr1::shared_ptr<PackageDepAtom>(new PackageDepAtom(
+ env.package_database()->fetch_unique_qualified_package_name(PackageNamePart(*p)))));
+ else
+ d.add(std::tr1::shared_ptr<PackageDepAtom>(new PackageDepAtom(*p)));
+ }
for (DepList::Iterator p(d.begin()), p_end(d.end()) ; p != p_end ; ++p)
if (dlk_masked == p->kind)