Cupt::System::Resolver(3) base class for Cupt resolvers

METHODS

new

creates new Cupt::System::Resolver object

Parameters:

config - reference to Cupt::Config

cache - reference to Cupt::Cache

cache

returns reference to Cupt::Cache

config

returns reference to Cupt::Config

import_installed_versions

method, imports already installed versions, usually used in pair with &Cupt::System::State::export_installed_versions

Should be re-implemented by derived classes.

Parameters:

ref_versions - reference to array of Cupt::Cache::BinaryVersion

install_version

method, installs a new version with requested dependencies

Should be re-implemented by derived classes.

Parameters:

version - reference to Cupt::Cache::BinaryVersion

satisfy_relation_expression

method, installs all needed versions to satisfy relation expression

Should be re-implemented by derived classes.

Parameters:

relation_expression - see ``Relation expression'' in Cupt::Cache::Relation

unsatisfy_relation_expression

method, removes all needed versions to make sure that relation expression is not satisfied

Should be re-implemented by derived classes.

Parameters:

relation_expression - see ``Relation expression'' in Cupt::Cache::Relation

remove_package

method, removes a package

Should be re-implemented by derived classes.

Parameters:

package_name - string, name of package to remove

upgrade

method, schedule upgrade of as much packages in system as possible

Should be re-implemented by derived classes.

resolve

method, finds a solution for requested actions

Should be re-implemented by derived classes.

Parameters:

sub_accept - reference to subroutine which has to return true if solution is accepted, false if solution is rejected, undef if user abandoned further searches