aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-23 14:00:29 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-23 14:00:29 +0100
commitce053f702a2d7fc61d6cabfe6fd5cefbdb94e94a (patch)
tree836861b4671f239fbc7bd1e870aca055a6daa621
parente5cd5fc2ae295d41810cf09c6efd65ffeff0c1d3 (diff)
downloadpaludis-ce053f702a2d7fc61d6cabfe6fd5cefbdb94e94a.tar.gz
paludis-ce053f702a2d7fc61d6cabfe6fd5cefbdb94e94a.tar.xz
Add arbitrary purge steps
-rw-r--r--paludis/resolver/decider.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/resolver/decider.cc b/paludis/resolver/decider.cc
index e88d146..b24468b 100644
--- a/paludis/resolver/decider.cc
+++ b/paludis/resolver/decider.cc
@@ -1854,6 +1854,8 @@ Decider::_resolve_purges()
for (PackageIDSet::ConstIterator u(have_now_minus_going_away->begin()), u_end(have_now_minus_going_away->end()) ;
u != u_end ; ++u)
{
+ _imp->env->trigger_notifier_callback(NotifierCallbackResolverStepEvent());
+
const std::tr1::shared_ptr<const PackageIDSet> used(_collect_depped_upon(*u, newly_unused_seq));
std::copy(used->begin(), used->end(), used_by_unchanging->inserter());
}
@@ -1866,6 +1868,8 @@ Decider::_resolve_purges()
for (PackageIDSet::ConstIterator i(newly_really_unused->begin()), i_end(newly_really_unused->end()) ;
i != i_end ; ++i)
{
+ _imp->env->trigger_notifier_callback(NotifierCallbackResolverStepEvent());
+
const std::tr1::shared_ptr<PackageIDSequence> used_to_use(new PackageIDSequence), star_i_set(new PackageIDSequence);
star_i_set->push_back(*i);
for (PackageIDSet::ConstIterator g(going_away->begin()), g_end(going_away->end()) ;
@@ -1920,6 +1924,8 @@ Decider::_accumulate_deps(
for (PackageIDSet::ConstIterator i(more->begin()), i_end(more->end()) ;
i != i_end ; ++i)
{
+ _imp->env->trigger_notifier_callback(NotifierCallbackResolverStepEvent());
+
done->insert(*i);
const std::tr1::shared_ptr<const PackageIDSet> depped_upon(_collect_depped_upon(*i, will_eventually_have));
std::copy(depped_upon->begin(), depped_upon->end(), result->inserter());