aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-19 20:06:48 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-19 20:06:48 +0100
commit6735424d05fb20755b670b8be30adadb112aa6e1 (patch)
treec4c5a6df99e48d9d4fdce2071928797027d913aa /src
parent86ec24031e3178a56dbc381916704dc0aba5bf75 (diff)
downloadpaludis-6735424d05fb20755b670b8be30adadb112aa6e1.tar.gz
paludis-6735424d05fb20755b670b8be30adadb112aa6e1.tar.xz
Lots of bools is icky
Diffstat (limited to 'src')
-rw-r--r--src/clients/cave/cmd_resolve_dump.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/clients/cave/cmd_resolve_dump.cc b/src/clients/cave/cmd_resolve_dump.cc
index c77c155c1..ee31dde44 100644
--- a/src/clients/cave/cmd_resolve_dump.cc
+++ b/src/clients/cave/cmd_resolve_dump.cc
@@ -97,9 +97,17 @@ namespace
const std::string visit(const ExistingNoChangeDecision & d) const
{
- return "ExistingNoChangeDecision(" + stringify(*d.existing_id()) + " is_same: "
- + stringify(d.is_same()) + " is_same_version: " + stringify(d.is_same_version())
- + " is_transient: " + stringify(d.is_transient()) + " taken: " + stringify(d.taken()) + ")";
+ std::string attrs;
+ for (EnumIterator<ExistingPackageIDAttribute> t, t_end(last_epia) ; t != t_end ; ++t)
+ if (d.attributes()[*t])
+ {
+ if (! attrs.empty())
+ attrs += ", ";
+ attrs += stringify(*t);
+ }
+
+ return "ExistingNoChangeDecision(" + stringify(*d.existing_id()) + " " +
+ attrs + " taken: " + stringify(d.taken()) + ")";
}
const std::string visit(const ChangesToMakeDecision & d) const