aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2010-03-26 21:23:43 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2010-03-26 21:23:43 +0000
commit4e207720b9d2a9932f0d57d7f858855e52faf649 (patch)
tree50c15ea75b0382c56e6dc8b6be239082b5e58e1d
parentc2b7e3e43575ec52a9ce44e6aeef33fda62ef2d4 (diff)
downloadpaludis-4e207720b9d2a9932f0d57d7f858855e52faf649.tar.gz
paludis-4e207720b9d2a9932f0d57d7f858855e52faf649.tar.xz
Create a temporary StandardOutputManager in case of errors
-rw-r--r--src/clients/cave/cmd_sync.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_sync.cc b/src/clients/cave/cmd_sync.cc
index 8683d46..df5d6a7 100644
--- a/src/clients/cave/cmd_sync.cc
+++ b/src/clients/cave/cmd_sync.cc
@@ -33,6 +33,7 @@
#include <paludis/util/executor.hh>
#include <paludis/util/timestamp.hh>
#include <paludis/output_manager.hh>
+#include <paludis/standard_output_manager.hh>
#include <paludis/repository.hh>
#include <paludis/environment.hh>
#include <paludis/hook.hh>
@@ -150,6 +151,7 @@ namespace
{
cout << format_general_spad(f::sync_repo_starting(), stringify(name), executor->pending(),
executor->active(), executor->done());
+ output_manager.reset(new StandardOutputManager);
if (0 != env->perform_hook(Hook("sync_pre")
("TARGET", stringify(name))