aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/sanitised_dependencies.cc
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2009-12-06 16:57:58 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2009-12-06 16:57:58 +0000
commit956ad7409b5099e5a40443b98a3eca16e599549a (patch)
tree546eb1cf61a0c776f9f6ded28765fcad85998d74 /paludis/resolver/sanitised_dependencies.cc
parent360080c80c74da04af2b6b12fd55d8c9d7aad2e7 (diff)
downloadpaludis-956ad7409b5099e5a40443b98a3eca16e599549a.tar.gz
paludis-956ad7409b5099e5a40443b98a3eca16e599549a.tar.xz
Handle empty ( ) blocks in || ( ) properly
Diffstat (limited to 'paludis/resolver/sanitised_dependencies.cc')
-rw-r--r--paludis/resolver/sanitised_dependencies.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/resolver/sanitised_dependencies.cc b/paludis/resolver/sanitised_dependencies.cc
index 61864ec..e0d1055 100644
--- a/paludis/resolver/sanitised_dependencies.cc
+++ b/paludis/resolver/sanitised_dependencies.cc
@@ -259,10 +259,10 @@ namespace
g_end(child_groups.end()) ;
g != g_end ; ++g)
{
- int worst_score(-1);
-
- if (g->empty())
- throw InternalError(PALUDIS_HERE, "why did that happen?");
+ // should match Decider::find_any_score logic:
+ // equivalent to an already installed spec with no
+ // version operator
+ int worst_score(59);
/* score of a group is the score of the worst child. */
for (std::list<PackageOrBlockDepSpec>::const_iterator h(g->begin()), h_end(g->end()) ;