aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-23 21:10:46 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-09-23 21:10:46 +0000
commitefdcb8127e74668d0a3cb081fd5e6718b082848a (patch)
tree4bce04824337a2eaba1240162e89af2cd8ade3aa
parent4c0cb9770a2e5035028231942229df975c7e3b5f (diff)
downloadpaludis-efdcb8127e74668d0a3cb081fd5e6718b082848a.tar.gz
paludis-efdcb8127e74668d0a3cb081fd5e6718b082848a.tar.xz
Show -signs for disabled USE things. Fixes: ticket:377
-rw-r--r--src/output/colour_formatter.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/output/colour_formatter.cc b/src/output/colour_formatter.cc
index 433b665..3f5b54e 100644
--- a/src/output/colour_formatter.cc
+++ b/src/output/colour_formatter.cc
@@ -147,7 +147,7 @@ ColourFormatter::format(const IUseFlag & f, const format::Disabled &) const
}
}
- return h + colour(cl_flag_off, g);
+ return h + colour(cl_flag_off, "-" + g);
}
std::string
@@ -193,7 +193,7 @@ ColourFormatter::format(const IUseFlag & f, const format::Masked &) const
}
}
- return h + colour(cl_flag_off, "(" + g + ")");
+ return h + colour(cl_flag_off, "(-" + g + ")");
}
std::string
@@ -225,7 +225,7 @@ ColourFormatter::format(const UseFlagName & f, const format::Enabled &) const
std::string
ColourFormatter::format(const UseFlagName & f, const format::Disabled &) const
{
- return colour(cl_flag_off, f);
+ return colour(cl_flag_off, "-" + stringify(f));
}
std::string
@@ -237,7 +237,7 @@ ColourFormatter::format(const UseFlagName & f, const format::Forced &) const
std::string
ColourFormatter::format(const UseFlagName & f, const format::Masked &) const
{
- return colour(cl_flag_off, "(" + stringify(f) + ")");
+ return colour(cl_flag_off, "(-" + stringify(f) + ")");
}
std::string