aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-11-24 00:03:36 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-11-24 00:03:36 +0000
commit13141cd64807557dc469e9a9b5ea4e6d0a85970a (patch)
tree4aca2d713a5fc7b241cc776fa3fcc873b4c45b78
parent5ea1c8e086b29331b1226bd31be210d22ca8274b (diff)
downloadpaludis-13141cd64807557dc469e9a9b5ea4e6d0a85970a.tar.gz
paludis-13141cd64807557dc469e9a9b5ea4e6d0a85970a.tar.xz
More info on cycle breaking for now
-rw-r--r--paludis/resolver/orderer.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/paludis/resolver/orderer.cc b/paludis/resolver/orderer.cc
index 44b9a29..81c1040 100644
--- a/paludis/resolver/orderer.cc
+++ b/paludis/resolver/orderer.cc
@@ -555,8 +555,18 @@ Orderer::_resolve_order()
_mark_already_ordered(*i);
if (pass >= 3)
+ {
+ std::stringstream s;
+ const std::tr1::shared_ptr<const Job> job(_imp->lists->jobs()->fetch(*i));
+ for (ArrowSequence::ConstIterator a(job->arrows()->begin()), a_end(job->arrows()->end()) ;
+ a != a_end ; ++a)
+ if (! _already_ordered(a->comes_after()))
+ s << " " << a->comes_after().string_id();
+
Log::get_instance()->message("resolver.orderer.job.broke_cycle", ll_warning, lc_context)
- << "Had to use cycle breaking to order " << i->string_id() << " (pass " << pass << ")";
+ << "Had to use cycle breaking to order " << i->string_id() << " (pass " << pass
+ << ", remaining arrows are" << s.str() << ")";
+ }
pass = 1;
}