aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_resolve.cc
diff options
context:
space:
mode:
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 (...)