From 956ad7409b5099e5a40443b98a3eca16e599549a Mon Sep 17 00:00:00 2001 From: David Leverton Date: Sun, 6 Dec 2009 16:57:58 +0000 Subject: Handle empty ( ) blocks in || ( ) properly --- paludis/resolver/sanitised_dependencies.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'paludis/resolver/sanitised_dependencies.cc') 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::const_iterator h(g->begin()), h_end(g->end()) ; -- cgit v1.2.3