aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_resolve.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-01 17:43:20 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-01 18:30:27 +0100
commitb1ccdd2e6af952961f50b1d3f9da3dc192d4c8cc (patch)
treed31883ed8ca6ee18d6a4ff31cfb1d41b615f5c8a /src/clients/cave/cmd_resolve.cc
parentc94a500a0b3e98e2d75bdfe667fe85949a1f8c27 (diff)
downloadpaludis-b1ccdd2e6af952961f50b1d3f9da3dc192d4c8cc.tar.gz
paludis-b1ccdd2e6af952961f50b1d3f9da3dc192d4c8cc.tar.xz
serialise
Diffstat (limited to 'src/clients/cave/cmd_resolve.cc')
-rw-r--r--src/clients/cave/cmd_resolve.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_resolve.cc b/src/clients/cave/cmd_resolve.cc
index 6ac09b0..c9c6fa2 100644
--- a/src/clients/cave/cmd_resolve.cc
+++ b/src/clients/cave/cmd_resolve.cc
@@ -41,6 +41,8 @@
#include <paludis/resolver/constraint.hh>
#include <paludis/resolver/sanitised_dependencies.hh>
#include <paludis/resolver/destinations.hh>
+#include <paludis/resolver/serialise-impl.hh>
+#include <paludis/resolver/resolutions.hh>
#include <paludis/user_dep_spec.hh>
#include <paludis/notifier_callback.hh>
#include <paludis/generator.hh>
@@ -616,7 +618,14 @@ ResolveCommand::run(
}
}
- display_resolution(env, resolver, cmdline);
+ std::stringstream ser;
+ Serialiser s(ser);
+ resolver->resolutions()->serialise(s);
+
+ std::tr1::shared_ptr<Resolutions> copied_resolutions(deserialise<Resolutions>(
+ env.get(), ser.str(), "Resolutions"));
+
+ display_resolution(env, copied_resolutions, cmdline);
display_explanations(env, resolver, cmdline);
}
catch (...)