aboutsummaryrefslogtreecommitdiff
path: root/src/clients/accerso/accerso.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/accerso/accerso.cc')
-rw-r--r--src/clients/accerso/accerso.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/clients/accerso/accerso.cc b/src/clients/accerso/accerso.cc
index c8e109c33..5e615f22d 100644
--- a/src/clients/accerso/accerso.cc
+++ b/src/clients/accerso/accerso.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2007, 2008, 2009, 2010 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 2009, 2010, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -30,7 +30,6 @@
#include <paludis/util/map.hh>
#include <paludis/util/make_named_values.hh>
#include <paludis/util/pretty_print.hh>
-#include <paludis/util/return_literal_function.hh>
#include <paludis/standard_output_manager.hh>
#include <paludis/util/safe_ofstream.hh>
#include <paludis/create_output_manager_info.hh>
@@ -51,6 +50,14 @@ using std::cout;
using std::cerr;
using std::endl;
+namespace
+{
+ WantPhase want_all_phases(const std::string &)
+ {
+ return wp_yes;
+ }
+}
+
int
main(int argc, char *argv[])
{
@@ -149,7 +156,7 @@ main(int argc, char *argv[])
n::ignore_unfetched() = false,
n::make_output_manager() = std::ref(output_manager_holder),
n::safe_resume() = true,
- n::want_phase() = std::bind(return_literal_function(wp_yes))
+ n::want_phase() = &want_all_phases
));
try