|Lintian::Collect::Dispatcher(3)||Debian Package Checker||Lintian::Collect::Dispatcher(3)|
NAME¶Lintian::Collect::Dispatcher - type neutral dispatcher
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.
- create_info (PACKAGE, TYPE, BASEDIR[, FIELDS]))
- Creates a new object appropriate to the package type. TYPE can be
retrieved later with the "type" method. Croaks if given an
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 <firstname.lastname@example.org> for Lintian.
SEE ALSO¶lintian(1), Lintian::Processable::Binary, Lintian::Processable::Changes, Lintian::Processable::Source