aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-06-08 12:07:52 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-06-08 12:07:52 +0000
commitdd747f4ffe1e672514a48be700c46c6e3d8d8aec (patch)
treebd418ea9db88976fc3b725e05618b9ffe7662ef0
parent8198cf5e997c61ef44ca7444900b6c682050b9ed (diff)
downloadpaludis-dd747f4ffe1e672514a48be700c46c6e3d8d8aec.tar.gz
paludis-dd747f4ffe1e672514a48be700c46c6e3d8d8aec.tar.xz
Improve MatchesGeneratorHandler::packages for the case of a full QPN.
-rw-r--r--paludis/generator.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/paludis/generator.cc b/paludis/generator.cc
index 8ec83fc..a199318 100644
--- a/paludis/generator.cc
+++ b/paludis/generator.cc
@@ -324,10 +324,11 @@ namespace
std::tr1::shared_ptr<QualifiedPackageNameSet> result(new QualifiedPackageNameSet);
for (RepositoryNameSet::ConstIterator r(repos->begin()), r_end(repos->end()) ;
r != r_end ; ++r)
- for (CategoryNamePartSet::ConstIterator c(cats->begin()), c_end(cats->end()) ;
- c != c_end ; ++c)
- if (env->package_database()->fetch_repository(*r)->has_package_named(*spec.package_ptr()))
- result->insert(*spec.package_ptr());
+ if (env->package_database()->fetch_repository(*r)->has_package_named(*spec.package_ptr()))
+ {
+ result->insert(*spec.package_ptr());
+ break;
+ }
return result;
}