Cupt::Cache::Relation.3pm

Langue: en

Autres versions - même langue

Version: 2010-06-14 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Cupt::Cache::Relation - store and combine information about package interrelations

METHODS

new

creates new Cupt::Cache::Relation object

Parameters:

relation_string - bare relation string (examples: "nlkt", "nlkt (>= 0.3.1)"

stringify

method, returns canonical stringified form of the relation

stringify_relation_expression

free subroutine, returns canonical stringified form of the ``Relation expression''

Parameters:

relation_expression - ``Relation expression'' to stringify

stringify_relation_expressions

free subroutine, returns canonical stringified form of the ``Relation expression'''s as a line

Parameters:

relation_expressions - [ ``Relation expression'' ... ]

satisfied_by

method, returns whether is this relation satisfied with the supplied version of the relation's package

Parameters:

version_string - version string to check

parse_relation_expression

free subroutine, parses relation expression in string form, builds ``Relation expression'' and returns it

parse_relation_line

free subroutine, parses line of relation expressions, builds array of ``Relation expression''s and returns reference to it

Relation expression

Can be in two forms:
relation, which stands for single relation
[ relation ... ], which stands for relation OR group, where only one of relations need to be satisfied

where

relation - Cupt::Cache::Relation object

SEE ALSO

Debian Policy 7.1