aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_choice_value.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-10-29 14:47:01 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-10-29 15:07:32 +0000
commit1a52c16f694b1c85b0dd056bbbc58f72acc1da1a (patch)
treee83fd3dc6dcbc3559f25407c053e8eb9d0b40197 /paludis/repositories/e/e_choice_value.cc
parentce4df37e1592c889e7fe14b6e7a3e57b10749e89 (diff)
downloadpaludis-1a52c16f694b1c85b0dd056bbbc58f72acc1da1a.tar.gz
paludis-1a52c16f694b1c85b0dd056bbbc58f72acc1da1a.tar.xz
Add MYOPTIONS [[ description ]] support.
Diffstat (limited to 'paludis/repositories/e/e_choice_value.cc')
-rw-r--r--paludis/repositories/e/e_choice_value.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/paludis/repositories/e/e_choice_value.cc b/paludis/repositories/e/e_choice_value.cc
index 8d6c36c83..3639c3639 100644
--- a/paludis/repositories/e/e_choice_value.cc
+++ b/paludis/repositories/e/e_choice_value.cc
@@ -25,7 +25,7 @@ using namespace paludis::erepository;
EChoiceValue::EChoiceValue(const ChoicePrefixName & r, const UnprefixedChoiceName & v, const ChoiceNameWithPrefix & np, const QualifiedPackageName & p,
const std::tr1::shared_ptr<const UseDesc> & d,
- bool b, bool def, bool l, bool x) :
+ bool b, bool def, bool l, bool x, const std::string & o) :
_prefix(r),
_unprefixed_name(v),
_name_with_prefix(np),
@@ -34,7 +34,8 @@ EChoiceValue::EChoiceValue(const ChoicePrefixName & r, const UnprefixedChoiceNam
_enabled(b),
_enabled_by_default(def),
_locked(l),
- _explicitly_listed(x)
+ _explicitly_listed(x),
+ _override_description(o)
{
}
@@ -53,6 +54,8 @@ EChoiceValue::name_with_prefix() const
const std::string
EChoiceValue::description() const
{
+ if (! _override_description.empty())
+ return _override_description;
if (! _use_desc)
return "";
return _use_desc->describe(_package_name, _prefix, _unprefixed_name);