aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-02 22:35:29 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-02 22:35:29 +0100
commit3ba65219b342903a4234f8adefc7d1d52c901e57 (patch)
treee73b41f163ce6df94be8df499fd689bf1d72f4d0
parent85ef4c6b1dc531ff926b7536f96c2ce04334d384 (diff)
downloadpaludis-3ba65219b342903a4234f8adefc7d1d52c901e57.tar.gz
paludis-3ba65219b342903a4234f8adefc7d1d52c901e57.tar.xz
That's it, I'm switching to RPM
-rw-r--r--paludis/match_package.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/paludis/match_package.cc b/paludis/match_package.cc
index b69c7b5..cb12011 100644
--- a/paludis/match_package.cc
+++ b/paludis/match_package.cc
@@ -167,6 +167,7 @@ paludis::match_package(
if (entry.masked())
return false;
+ bool ok(false);
for (PackageDatabase::RepositoryConstIterator d(env.package_database()->begin_repositories()),
d_end(env.package_database()->end_repositories()) ;
d != d_end ; ++d)
@@ -179,9 +180,13 @@ paludis::match_package(
continue;
if (! (*d)->destination_interface()->is_suitable_destination_for(entry))
continue;
+
+ ok = true;
+ break;
}
- return false;
+ if (! ok)
+ return false;
}
if (spec.slot_requirement_ptr())