aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-12 19:11:09 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-13 08:51:37 +0100
commit1b843eb86f98b9aba5ff628f089d6171026641f0 (patch)
treed62f62ac231953b0fb6fbbe5fcae2078a66b13a3
parent72a92cc4823c8837fa14c78034f024a727f6af4e (diff)
downloadpaludis-1b843eb86f98b9aba5ff628f089d6171026641f0.tar.gz
paludis-1b843eb86f98b9aba5ff628f089d6171026641f0.tar.xz
Show when changing from repos
-rw-r--r--src/clients/cave/cmd_display_resolution.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index 736b7c9..cc5de1d 100644
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -843,6 +843,19 @@ namespace
if (! decision.best())
cout << c::bold_yellow() << " (not the best version)" << c::normal();
+ if ((! decision.destination()->replacing()->empty()) &&
+ (*decision.destination()->replacing()->begin())->from_repositories_key() &&
+ ! (*decision.destination()->replacing()->begin())->from_repositories_key()->value()->empty() &&
+ (*decision.destination()->replacing()->begin())->from_repositories_key()->value()->end() ==
+ (*decision.destination()->replacing()->begin())->from_repositories_key()->value()->find(stringify(
+ decision.origin_id()->repository()->name())))
+ {
+ cout << c::bold_yellow() << " (formerly from ::" << join(
+ (*decision.destination()->replacing()->begin())->from_repositories_key()->value()->begin(),
+ (*decision.destination()->replacing()->begin())->from_repositories_key()->value()->end(),
+ ", ::") << ")";
+ }
+
cout << c::normal() << " " << decision.origin_id()->canonical_form(idcf_version) <<
" to " << decision.destination()->repository();