METHODS
new
creates new Cupt::System::Resolver objectParameters:
config - reference to Cupt::Config
cache - reference to Cupt::Cache
cache
returns reference to Cupt::Cacheconfig
returns reference to Cupt::Configimport_installed_versions
method, imports already installed versions, usually used in pair with &Cupt::System::State::export_installed_versionsShould 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 dependenciesShould be re-implemented by derived classes.
Parameters:
version - reference to Cupt::Cache::BinaryVersion
satisfy_relation_expression
method, installs all needed versions to satisfy relation expressionShould 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 satisfiedShould be re-implemented by derived classes.
Parameters:
relation_expression - see ``Relation expression'' in Cupt::Cache::Relation
remove_package
method, removes a packageShould 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 possibleShould be re-implemented by derived classes.
resolve
method, finds a solution for requested actionsShould 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