Scroll to navigation

Lintian::Collect::Dispatcher(3) Debian Package Checker Lintian::Collect::Dispatcher(3)

NAME

Lintian::Collect::Dispatcher - type neutral dispatcher

SYNOPSIS

    my ($name, $type, $dir) = ('foobar', 'udeb', '/some/abs/path');
    my $collect = create_info($name, $type, $dir);
    $name = $collect->name;
    $type = $collect->type;

DESCRIPTION

Lintian::Processable provides the shared interface to package data used by source, binary and udeb packages and .changes files. It creates an object of the appropriate type and provides common functions used by the collection interface to all types of package.

CLASS METHODS

Creates a new object appropriate to the package type. TYPE can be retrieved later with the "type" method. Croaks if given an unknown TYPE.

PACKAGE is the name of the package and is stored in the collect object. It can be retrieved with the "name" method.

BASEDIR is the base directory for the data and should be absolute.

If FIELDS is given it is assumed to be the fields from the underlying control file. This is only used to avoid an unnecessary read operation (possibly incl. an ar | gzip pipeline) when the fields are already known.

Needs-Info requirements for using create_info: none

AUTHOR

Originally written by Russ Allbery <rra@debian.org> for Lintian.

SEE ALSO

lintian(1), Lintian::Processable::Binary, Lintian::Processable::Changes, Lintian::Processable::Source

2020-02-23 Lintian v2.55.0