aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-11-20 20:25:29 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-11-20 20:25:29 +0000
commit6ae1d90a0cebdc74a3368af481b3d429a8d9c8f4 (patch)
tree37abf026812fe9a883edae4ea731ec36ebade956 /src
parentfada389df0902a4e0e975909b3d4b4e23429f4c9 (diff)
downloadpaludis-6ae1d90a0cebdc74a3368af481b3d429a8d9c8f4.tar.gz
paludis-6ae1d90a0cebdc74a3368af481b3d429a8d9c8f4.tar.xz
Make fetch_unique_qualified_package_name take a query to limit the potential results, and use it to pick out installable or installed packages when appropriate.
Diffstat (limited to 'src')
-rw-r--r--src/clients/paludis/do_config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/paludis/do_config.cc b/src/clients/paludis/do_config.cc
index 1c9b09331..caa92a1c2 100644
--- a/src/clients/paludis/do_config.cc
+++ b/src/clients/paludis/do_config.cc
@@ -75,7 +75,7 @@ namespace
tr1::shared_ptr<PackageDepSpec> spec(std::string::npos == target.find('/') ?
new PackageDepSpec(tr1::shared_ptr<QualifiedPackageName>(new QualifiedPackageName(
env->package_database()->fetch_unique_qualified_package_name(
- PackageNamePart(target))))) :
+ PackageNamePart(target), query::InstalledAtRoot(env->root()))))) :
new PackageDepSpec(target, pds_pm_permissive));
tr1::shared_ptr<const PackageIDSequence>