aboutsummaryrefslogtreecommitdiff
path: root/paludis/broken_linkage_finder.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-03-31 19:16:19 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-03-31 19:16:19 +0100
commit90f88326dbc6d58e2a8e97d8d2ba06dbe60df083 (patch)
tree40ad7ff3b5d228a9e7380e831c752ec05862e4a5 /paludis/broken_linkage_finder.cc
parentf07f179e9bc57b1af665563f6554c55de3b8d893 (diff)
downloadpaludis-90f88326dbc6d58e2a8e97d8d2ba06dbe60df083.tar.gz
paludis-90f88326dbc6d58e2a8e97d8d2ba06dbe60df083.tar.xz
Notifiers for linkage steps
Fixes: ticket:867
Diffstat (limited to 'paludis/broken_linkage_finder.cc')
-rw-r--r--paludis/broken_linkage_finder.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/broken_linkage_finder.cc b/paludis/broken_linkage_finder.cc
index 613efc0ae..6026ed843 100644
--- a/paludis/broken_linkage_finder.cc
+++ b/paludis/broken_linkage_finder.cc
@@ -45,6 +45,7 @@
#include <paludis/filter.hh>
#include <paludis/filtered_generator.hh>
#include <paludis/selection.hh>
+#include <paludis/notifier_callback.hh>
#include <tr1/functional>
#include <algorithm>
@@ -197,6 +198,8 @@ void
Implementation<BrokenLinkageFinder>::search_directory(const FSEntry & directory)
{
FSEntry dir(directory);
+ env->trigger_notifier_callback(NotifierCallbackLinkageStepEvent(dir));
+
do
{
dir = dir.dirname();
@@ -270,6 +273,8 @@ Implementation<BrokenLinkageFinder>::check_file(const FSEntry & file)
else if (file.is_regular_file())
{
+ env->trigger_notifier_callback(NotifierCallbackLinkageStepEvent(file));
+
if (indirect_iterator(checkers.end()) ==
std::find_if(indirect_iterator(checkers.begin()), indirect_iterator(checkers.end()),
std::tr1::bind(&LinkageChecker::check_file, _1, file)))