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.1priority
priority, string, defined in Debian Policy, X5.6.6section
section, string, defined in Debian Policy, X5.6.5, can be undefinstalled_size
size of unpacked archive in bytesmaintainer
maintainer of the package, stringarchitecture
binary architecture of the package, string, defined in Debian Policy, X5.6.8source_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.12source_version_string
version string of the corresponding source package, the same rules as for version_stringessential
is the version essential, boolean, defined in Debian Policy, X5.6.9depends
[ 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 bytesmd5sum
MD5 hash sum of the binary archive, can be undefsha1sum
SHA1 hash sum of the binary archive, can be undefsha256sum
SHA256 hash sum of the binary archive, can be undefshort_description
short description of the version, string, can be undeflong_description
long description of the version, multi-line string, can be undeftask
task which the package belongs to, string, can be undeftags
tags list, string, can be undefothers
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::BinaryVersionParameters:
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 notis_installed
method, returns whether this version is installed in the system or not