Youri::Package - Abstract package class
This abstract class defines Youri::Package interface.
Creates and returns a new Youri::Package object.
Warning: do not call directly, call subclass constructor instead.
Returns a pattern matching a file for a package, using available informations.
Compares $version1 and $version2, and returns a numeric value:
Compares $range1 and $range2, and returns a true value if they are compatible.
Returns the name of this package.
Returns the version of this package.
Returns the release of this package.
Returns the architecture of this package.
Returns the revision name of this package (name-version-release).
Returns the full name of this package (name-version-release.arch).
Returns the file name of this package (name-version-release.arch.extension).
Returns the file containing this package.
Returns true if this package is a source package.
Returns true if this package is a binary package.
Returns the type (binary/source) of this package.
Returns the age of this package
Returns the URL of this package
Returns the summary of this package
Returns the description of this package
Returns the packager of this package.
Returns the name of the source package of this package.
Returns the value of tag $tag of this package.
Returns the canonical name of this package, shared by its multiple components, usually the one from the source package.
Returns the list of dependencies required by this package, each dependency being represented as an array reference, with the following informations:
Name of the dependency (index DEPENDENCY_NAME)
Range of the dependency (index DEPENDENCY_RANGE)
For more conveniency, fields index are available as constant in this package.
Returns the list of dependencies provided by this package, each dependency being represented as an array reference, using the same structure as previous method.
Returns the list of other packages obsoleted by this one, each one being represented as an array reference, using the same structure as previous method.
Returns the list of other packages conflicting with this one.
Returns the list of files contained in this package, each file being represented as an array reference, with the following informations:
Name of the file (index FILE_NAME).
Mode of the file (index FILE_MODE).
Md5sum of the file (index FILE_MD5SUM).
For more conveniency, fields index are available as constant in this package.
Returns the gpg key id of package signature.
Returns formated informations about the package.
Returns the list of changes for this package, each change being represented as an array reference, with the following informations:
Author of the change (index CHANGE_AUTHOR).
Time of the change (index CHANGE_TIME).
Textual description of the change, as as array reference of individual changes (index CHANGE_TEXT).
For more conveniency, fields index are available as constant in this package.
Returns the last change for this package, as as structure described before.
Compares release ordering with other package.
Signs the package with given name, keyring path and passphrase.
Extract package content in local directory.
All instances methods have to be implemented.
Copyright (C) 2002-2006, YOURI project
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.