---
name: "Cupt::Cache::Relation"
section: "3pm"
platform: "linux"
package: "libcupt-perl"
version: "1.5.14.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Cupt::Cache::Relation"
---

# Cupt::Cache::Relation(3pm)

store and combine information about package interrelations

## 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
