aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-03 23:57:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-03 23:57:12 +0000
commit09cdf3daaf63ede73492bae883927893ca862656 (patch)
tree8f6c4c8a47afab99e5511566aeadfbd8a831e98f
parent20bb703fc039893214fc1695a15c200e7b073ccd (diff)
downloadpaludis-09cdf3daaf63ede73492bae883927893ca862656.tar.gz
paludis-09cdf3daaf63ede73492bae883927893ca862656.tar.xz
Fix drop_self_circular
-rw-r--r--paludis/dep_list.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/dep_list.cc b/paludis/dep_list.cc
index 287a538..4d3c056 100644
--- a/paludis/dep_list.cc
+++ b/paludis/dep_list.cc
@@ -333,6 +333,11 @@ DepList::visit(const PackageDepAtom * const p)
else if (_imp->drop_circular)
return;
+ else if (_imp->current_package && _imp->drop_self_circular &&
+ match_package(_imp->environment->package_database(), p,
+ _imp->current_package))
+ return;
+
else
throw CircularDependencyError(i, next(i));
}