Lintian::Processable -- An (abstract) object that Lintian can process
use Lintian::Processable; # Instantiate via Lintian::Processable my $proc = Lintian::Processable->new; $proc->init_from_file('lintian_2.5.0_all.deb'); my $package = $proc->pkg_name; my $version = $proc->pkg_version; # etc.
Instances of this perl class are objects that Lintian can process (e.g. deb files). Multiple objects can then be combined into groups, which Lintian will process together.
Returns the package name.
Returns the version of the package.
Returns the path to the packaged version of actual package. This path is used in case the data needs to be extracted from the package.
Note: This may return the path to a symlink to the package.
Returns the type of package (e.g. binary, source, udeb ...)
Returns the architecture(s) of the package. May return multiple values from changes processables. For source processables it is "source".
Returns the name of the source package.
Returns the version of the source package.
Returns a truth value if one or more fields in this Processable is tainted. On a best effort basis tainted fields will be sanitized to less dangerous (but possibly invalid) values.
Produces an identifier for this processable. The identifier is based on the type, name, version and architecture of the package.
Returns a reference to lab this Processable is in.
Returns the base directory of this package inside the lab.
Returns a reference to the Processable::Group related to this entry.
Returns a reference to the info structure related to this entry.
Returns a reference to the extra fields related to this entry.
Returns a reference to the extra fields related to this entry.
Returns a reference to the extra fields related to this entry.
Returns the info object associated with this entry.
Overrides info from Lintian::Processable.
Clears any caches held; this includes discarding the info object.
Overrides clear_cache from Lintian::Processable.
Removes all unpacked parts of the package in the lab. Returns a truth value if successful.
Calculates an appropriate group id for the package. It is based on the name and the version of the src-pkg.
Cleans a field of evil characters to prevent traversal or worse.
Returns the link in the work area to the input data.
Creates a link to the input file near where all files in that group will be unpacked and analyzed.
Creates a link to the input file near where all files in that group will be unpacked and analyzed.
Originally written by Niels Thykier <niels@thykier.net> for Lintian.
lintian(1)