aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-15 15:20:18 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-02-15 15:20:18 +0000
commit0361486bbadd50eaa1bfe97749b69261e55cdce9 (patch)
tree86da9e9db322dd5988e769a33d279995f904153b
parent3e6f3aed7d449515caca1110cccebf432291d4c6 (diff)
downloadpaludis-0361486bbadd50eaa1bfe97749b69261e55cdce9.tar.gz
paludis-0361486bbadd50eaa1bfe97749b69261e55cdce9.tar.xz
Use output managers for syncing
-rw-r--r--paludis/sync_task.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/paludis/sync_task.cc b/paludis/sync_task.cc
index ddf8204..b884f12 100644
--- a/paludis/sync_task.cc
+++ b/paludis/sync_task.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006, 2007, 2008 Ciaran McCreesh
+ * Copyright (c) 2006, 2007, 2008, 2009 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
@@ -27,6 +27,8 @@
#include <paludis/util/make_shared_ptr.hh>
#include <paludis/package_database.hh>
#include <paludis/hook.hh>
+#include <paludis/create_output_manager_info.hh>
+#include <paludis/output_manager.hh>
#include <tr1/functional>
#include <algorithm>
#include <list>
@@ -113,7 +115,9 @@ namespace
}
std::tr1::shared_ptr<const Repository> rr(env->package_database()->fetch_repository(r));
- if ((*rr).syncable_interface() && (*rr).syncable_interface()->sync(make_null_shared_ptr()))
+ std::tr1::shared_ptr<OutputManager> output_manager(env->create_output_manager(
+ CreateOutputManagerForRepositorySyncInfo(*rr, oe_exclusive)));
+ if ((*rr).syncable_interface() && (*rr).syncable_interface()->sync(output_manager))
{
Lock l(mutex);
task->on_sync_succeed(r);
@@ -123,6 +127,7 @@ namespace
Lock l(mutex);
task->on_sync_skip(r);
}
+ output_manager->succeeded();
{
Lock l(mutex);