Lintian::Processable::Control (3) Linux Manual Page
Lintian::Processable::Control – access to collected control file data
Synopsis
use Lintian::Processable;
my $processable = Lintian::Processable::Binary->new;
Description
Lintian::Processable::Control provides an interface to control file data.
Instance Methods
- control
- Returns the index for a binary control file.
- control_index (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
- sorted_control_index
- 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
- control_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.
Needs-Info requirements for using control_index_resolved_path: Same as control_index
Author
Originally written by Felix Lechner <felix.lechner [at] lease-up.com> for Lintian.
See Also
lintian(1)
