aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-27 09:26:47 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-06-27 09:26:47 +0100
commit21e700c5c139d54c1db760d9fadc3ceb513886fa (patch)
treed90b3a991bccec7c2a3df9e2e17562aedffb5182
parentc8a7936816af50baec8cc0120c424a4beb7cf424 (diff)
downloadpaludis-21e700c5c139d54c1db760d9fadc3ceb513886fa.tar.gz
paludis-21e700c5c139d54c1db760d9fadc3ceb513886fa.tar.xz
Unorderable in red, not white
-rw-r--r--src/clients/cave/cmd_display_resolution.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index c70d2d0..57f289c 100644
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -746,6 +746,7 @@ namespace
const bool more_annotations,
const bool confirmations,
const bool untaken,
+ const bool unorderable,
const std::string & notes,
ChoicesToExplain & choices_to_explain)
{
@@ -824,7 +825,7 @@ namespace
if (confirmations)
display_confirmations(decision);
if (! notes.empty())
- cout << " " << c::bold_normal() << notes << c::normal() << endl;
+ cout << " " << (unorderable ? c::bold_red() : c::bold_normal()) << notes << c::normal() << endl;
}
void display_one_uninstall(
@@ -1216,6 +1217,7 @@ namespace
const bool more_annotations;
const bool unconfirmed;
const bool untaken;
+ const bool unorderable;
const std::string cycle_breaking;
ChoicesToExplain & choices_to_explain;
@@ -1226,6 +1228,7 @@ namespace
bool m,
bool uc,
bool ut,
+ bool un,
const std::string & s,
ChoicesToExplain & x) :
env(e),
@@ -1234,6 +1237,7 @@ namespace
more_annotations(m),
unconfirmed(uc),
untaken(ut),
+ unorderable(un),
cycle_breaking(s),
choices_to_explain(x)
{
@@ -1249,6 +1253,7 @@ namespace
more_annotations,
unconfirmed,
untaken,
+ unorderable,
cycle_breaking,
choices_to_explain);
}
@@ -1319,6 +1324,7 @@ namespace
more_annotations,
unconfirmed,
untaken,
+ unorderable,
star_i.second ? star_i.second->cycle_breaking() : "",
choices_to_explain);
star_i.first->accept(v);