aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-18 10:22:22 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-06-18 10:22:22 +0000
commit6310ac5e5cdbd35f02f0ac573577e52a37ae68ee (patch)
tree8f5f33cb6bd4d3d4e33c2398db0ff312053d4cf8
parent85a6230126000a6744192f1f7528c95585e7ed05 (diff)
downloadpaludis-6310ac5e5cdbd35f02f0ac573577e52a37ae68ee.tar.gz
paludis-6310ac5e5cdbd35f02f0ac573577e52a37ae68ee.tar.xz
Emit a warning when dropping circular dependencies
-rw-r--r--paludis/dep_list.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/paludis/dep_list.cc b/paludis/dep_list.cc
index 88aff01..1b6b7eb 100644
--- a/paludis/dep_list.cc
+++ b/paludis/dep_list.cc
@@ -348,11 +348,22 @@ DepList::visit(const PackageDepAtom * const p)
return;
else if (_imp->drop_circular)
+ {
+ if (_imp->current_package)
+ Log::get_instance()->message(ll_warning, "Dropping circular dependency on " +
+ stringify(_imp->current_package->get<dle_name>()) + "-" +
+ stringify(_imp->current_package->get<dle_version>()));
return;
+ }
else if (_imp->current_package && _imp->drop_self_circular &&
match_package(_imp->environment, p, _imp->current_package))
+ {
+ Log::get_instance()->message(ll_warning, "Dropping self-circular dependency on " +
+ stringify(_imp->current_package->get<dle_name>()) + "-" +
+ stringify(_imp->current_package->get<dle_version>()));
return;
+ }
else
throw CircularDependencyError(i, next(i));
@@ -501,6 +512,11 @@ DepList::visit(const PackageDepAtom * const p)
{
if (dlro_never == _imp->rdepend_post)
throw;
+ else if (_imp->current_package)
+ Log::get_instance()->message(ll_warning, "Couldn't resolve runtime dependencies "
+ "for " + stringify(_imp->current_package->get<dle_name>()) + "-" +
+ stringify(_imp->current_package->get<dle_version>()) + " as build dependencies, "
+ "trying them as post dependencies");
}
}
}