aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/sanitised_dependencies.cc
diff options
context:
space:
mode:
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 61864ec1c..e0d10551b 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()) ;