Cupt::Cache::BinaryVersion.3pm

Langue: en

Autres versions - même langue

Version: 2009-06-21 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Cupt::Cache::BinaryVersion - store info about specific version of deb binary package

FLAGS

o_no_parse_relations

Option to don't parse dependency relation between packages, can speed-up parsing the version if this info isn't needed. Off by default.

o_no_parse_info_onlys

Option to don't parse 'Maintainer', 'Description', 'Tag', 'Homepage', can speed-up parsing the version if this info isn't needed. Off by default.

METHODS

new

creates an Cupt::Cache::BinaryVersion

Parameters:

initializer_argument - [ $package_name, fh, offset, ref_release_info ]

where

fh - file handle to opened file that contains version entry

offset - offset in bytes to locate version entry in fh, may include 'Package:' line or not

ref_release_info - reference to release info

METHODS

uris

method, returs available URIs to download the .deb file.

Returns:

array of URI entrys.

where:

URI entry - { 'download_uri' => download_uri, 'base_uri' => base_uri, 'appendage' => appendage }

download_uri - full URI to download

base_uri - base URI (as specified in sources.list)

appendage - string to append to base URI to compute download_uri, contains 'Filename' property of package entries.

is_signed

method, returns whether this version has signed source or not

is_installed

method, returns whether this version is installed in the system or not