% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
Lintian::Collect::Changes - Lintian interface to .changes file data collection
my ($name, $type) = ('foobar_1.2_i386.changes', '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::Changes provides an interface to data for .changes files. It implements data collection methods specific to .changes files.
Creates a new Lintian::Collect::Changes 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 .changes 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
Needs-Info requirements for using files: "field ([FIELD[, DEFAULT]])" in Lintian::Collect
Returns true if the source package referenced in this changes file has been "repacked" and false otherwise. This is determined from the version name containing "dfsg" or similar.
Needs-Info requirements for using repacked: Same as field
Originally written by Adam D. Barratt <adsb@debian.org> for Lintian.
lintian(1), Lintian::Collect