Cupt::Cache::BinaryVersion.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::BinaryVersion - store info about specific version of deb binary package

FIELDS

available_as

   {
     'release' => $release_info
     'filename' => download URI appendage
   }
 
 

See Release info in Cupt::Cache.

package_name

name of the package, string, defined in Debian Policy, X3.1

priority

priority, string, defined in Debian Policy, X5.6.6

section

section, string, defined in Debian Policy, X5.6.5, can be undef

installed_size

size of unpacked archive in bytes

maintainer

maintainer of the package, string

architecture

binary architecture of the package, string, defined in Debian Policy, X5.6.8

source_package_name

name of the corresponding source package, string, the same rules as for package_name.

version_string

version string, defined in Debian Policy, X5.6.12

source_version_string

version string of the corresponding source package, the same rules as for version_string

essential

is the version essential, boolean, defined in Debian Policy, X5.6.9

depends

[ relation_expression... ]

Debian Policy, X7.2, 'Depends'

recommends

[ relation_expression... ]

Debian Policy, X7.2, 'Recommends'

suggests

[ relation_expression... ]

Debian Policy, X7.2, 'Suggests'

conflicts

[ relation_expression... ]

Debian Policy, X7.2, 'Conflicts'

breaks

[ relation_expression... ]

Debian Policy, X7.2, 'Breaks'

enhances

[ relation_expression... ]

Debian Policy, X7.2, 'Enhances'

provides

[ package_name... ]

Debian Policy, X7.2, 'Provides'

replaces

[ relation_expression... ]

Debian Policy, X7.2, 'Replaces'

pre_depends

[ relation_expression... ]

Debian Policy, X7.2, 'Pre-Depends'

size

size of binary archive in bytes

md5sum

MD5 hash sum of the binary archive, can be undef

sha1sum

SHA1 hash sum of the binary archive, can be undef

sha256sum

SHA256 hash sum of the binary archive, can be undef

short_description

short description of the version, string, can be undef

long_description

long description of the version, multi-line string, can be undef

task

task which the package belongs to, string, can be undef

tags

tags list, string, can be undef

others

hash entry that contains other fields found in the version entry in form { $name => $value }.

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', 'Section', 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

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