DOKK / manpages / debian 10 / lintian / Lintian::Collect::Buildinfo.3.en
Lintian::Collect::Buildinfo(3) Debian Package Checker Lintian::Collect::Buildinfo(3)

Lintian::Collect::Buildinfo - Lintian interface to .buildinfo file data collection

    my ($name, $type) = ('foobar_1.2_i386.buildinfo', 'changes');
    my $collect = Lintian::Collect->new($name, $type);
    my $files = $collect->files;
    foreach my $file (keys %{$files}) {
        my $size = $files->{$file}{size};
        print "File $file has size $size\n";
    }

Lintian::Collect::Buildinfo provides an interface to data for .buildinfo files. It implements data collection methods specific to .buildinfo files.

Creates a new Lintian::Collect::Buildinfo object. Currently, PACKAGE is ignored. Normally, this method should not be called directly, only via the Lintian::Collect constructor.

In addition to the instance methods listed below, all instance methods documented in the Lintian::Collect module are also available.

Returns a reference to a hash containing information about files listed in the .buildinfo file. Each hash may have the following keys:
Name of the file.
The size of the file in bytes.
The archive section to which the file belongs.
The priority of the file.
A hash with the keys being checksum algorithms and the values themselves being hashes containing
The result of applying the given algorithm to the file.
The size of the file as given in the .buildinfo section relating to the given checksum.

Needs-Info requirements for using files: "field ([FIELD[, DEFAULT]])" in Lintian::Collect

Originally written by Adam D. Barratt <adsb@debian.org> for Lintian.

lintian(1), Lintian::Collect

2019-05-26 Lintian v2.15.0