Lintian::Processable::Installed (3) - Linux Man Pages
Lintian::Processable::Installed: access to collected data about the upstream (orig) sources
Lintian::Processable::Installed - access to collected data about the upstream (orig) sources
use Lintian::Processable; my $processable = Lintian::Processable::Binary->new;
DESCRIPTIONLintian::Processable::Installed provides an interface to collected data about the upstream (orig) sources.
- Returns a index object representing installed files from a binary package.
- index (FILE)
Returns a path object to FILE in the package. FILE
must be relative to the root of the unpacked package and must be
without leading slash (or ``./''). If FILE is not in the package, it
returns "undef". If FILE is supposed to be a directory, it must be
given with a trailing slash. Example:
my $file = $info->index ("usr/bin/lintian"); my $dir = $info->index ("usr/bin/");
To get a list of entries in the package, see ``sorted_index''. To actually access the underlying file (e.g. the contents), use ``unpacked ([FILE])''.
Note that the ``root directory'' (denoted by the empty string) will always be present, even if the underlying tarball omits it.
Needs-Info requirements for using index: unpacked
Returns a sorted array of file names listed in the package. The names
will not have a leading slash (or ``./'') and can be passed to
``unpacked ([FILE])'' or ``index (FILE)'' as is.
The array will not contain the entry for the ``root'' of the package.
Resolve PATH (relative to the root of the package) and return the
entry denoting the resolved path.
The resolution is done using resolve_path.
AUTHOROriginally written by Felix Lechner <felix.lechner [at] lease-up.com> for Lintian.