Lintian::Processable::Installed (3) - Linux Manuals
Lintian::Processable::Installed: access to collected data about the upstream (orig) sources
NAME
Lintian::Processable::Installed - access to collected data about the upstream (orig) sources
SYNOPSIS
use Lintian::Processable; my $processable = Lintian::Processable::Binary->new;
DESCRIPTION
Lintian::Processable::Installed provides an interface to collected data about the upstream (orig) sources.INSTANCE METHODS
- installed
- 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
- sorted_index
-
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.
- index_resolved_path(PATH)
-
Resolve PATH (relative to the root of the package) and return the
entry denoting the resolved path.
The resolution is done using resolve_path.