aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-01 21:33:48 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-11-01 21:33:48 +0000
commit9b2bf67bde2d38555e9c17305da932a379f61adf (patch)
tree97f4fe40f1f6c4660d39033acb5ee6a4d9574a2a /src/clients/cave
parentc62994832bf483e9974eec057d9d8d13f9b202ed (diff)
downloadpaludis-9b2bf67bde2d38555e9c17305da932a379f61adf.tar.gz
paludis-9b2bf67bde2d38555e9c17305da932a379f61adf.tar.xz
Track which reasons need changes
Diffstat (limited to 'src/clients/cave')
-rwxr-xr-xsrc/clients/cave/cmd_display_resolution.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clients/cave/cmd_display_resolution.cc b/src/clients/cave/cmd_display_resolution.cc
index 612c58590..e6e69912e 100755
--- a/src/clients/cave/cmd_display_resolution.cc
+++ b/src/clients/cave/cmd_display_resolution.cc
@@ -57,6 +57,7 @@
#include <paludis/resolver/orderer_notes.hh>
#include <paludis/resolver/change_by_resolvent.hh>
#include <paludis/resolver/match_qpns.hh>
+#include <paludis/resolver/why_changed_choices.hh>
#include <paludis/package_id.hh>
#include <paludis/version_spec.hh>
#include <paludis/metadata_key.hh>
@@ -523,7 +524,7 @@ namespace
const std::shared_ptr<Environment> &,
const DisplayResolutionCommandLine & cmdline,
const std::shared_ptr<const PackageID> & id,
- const std::shared_ptr<const ChangedChoices> & changed_choices,
+ const std::shared_ptr<const WhyChangedChoices> & changed_choices,
const std::shared_ptr<const PackageID> & old_id,
ChoicesToExplain & choices_to_explain
)
@@ -554,7 +555,7 @@ namespace
Tribool changed_state(indeterminate);
if (changed_choices)
- changed_state = changed_choices->overridden_value((*i)->name_with_prefix());
+ changed_state = changed_choices->changed_choices()->overridden_value((*i)->name_with_prefix());
auto & s_prefix(changed_state.is_indeterminate() ? unchanged_s_prefix : changed_s_prefix);
auto & shown_prefix(changed_state.is_indeterminate() ? shown_prefix_unchanged : shown_prefix_changed);