Scroll to navigation

Lintian::Info::Control::Index(3) Debian Package Checker Lintian::Info::Control::Index(3)

NAME

Lintian::Info::Control::Index - access to collected control file data

SYNOPSIS

    use Lintian::Processable;
    my $processable = Lintian::Processable::Binary->new;

DESCRIPTION

Lintian::Info::Control::Index provides an interface to control file data.

INSTANCE METHODS

An index object for binary control files.
Returns the index for a binary control file.
Returns a path object to FILE in the control.tar.gz. FILE must be relative to the root of the control.tar.gz and must be without leading slash (or "./"). If FILE is not in the control.tar.gz, it returns "undef".

To get a list of entries in the control.tar.gz, see "sorted_control_index". To actually access the underlying file (e.g. the contents), use "control ([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 control_index: bin-pkg-control

Returns a sorted array of file names listed in the control.tar.gz. The names will not have a leading slash (or "./") and can be passed to "control ([FILE])" or "control_index (FILE)" as is.

The array will not contain the entry for the "root" of the control.tar.gz.

Needs-Info requirements for using sorted_control_index: Same as control_index

Resolve PATH (relative to the root of the package) and return the entry denoting the resolved path.

The resolution is done using resolve_path.

Needs-Info requirements for using control_index_resolved_path: Same as control_index

AUTHOR

Originally written by Felix Lechner <felix.lechner@lease-up.com> for Lintian.

SEE ALSO

lintian(1), Lintian::Collect, Lintian::Collect::Binary, Lintian::Collect::Source

2020-02-20 Lintian v2.54.0