diff options
Diffstat (limited to 'src/generic/apt/aptitude_resolver.h')
-rw-r--r-- | src/generic/apt/aptitude_resolver.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/generic/apt/aptitude_resolver.h b/src/generic/apt/aptitude_resolver.h index 0f792804..f2fa566a 100644 --- a/src/generic/apt/aptitude_resolver.h +++ b/src/generic/apt/aptitude_resolver.h @@ -90,6 +90,10 @@ public: * cost tuple should have a number added to it. */ add_to_cost_component, + /** \brief A hint indicating that the target should be + * discarded. + */ + discard, /** \brief A hint indicating that a named component of the * cost tuple should be increased to an upper bound. */ @@ -318,6 +322,13 @@ public: target, selection, component_name); } + /** \brief Create a hint that discards solutions containing the target. */ + static hint make_discard(const cwidget::util::ref_ptr<aptitude::matching::pattern> &target, + const version_selection &selection) + { + return hint(discard, 0, target, selection, ""); + } + /** \brief Create a hint that increases a single component of the * cost level to the given value. */ |