table of contents
other versions
- stretch 2.5.50.4
- testing 2.9.1
- stretch-backports 2.15.0~bpo9+1
- unstable 2.15.0
Lintian::Collect::Changes(3) | Debian Package Checker | Lintian::Collect::Changes(3) |
NAME¶
Lintian::Collect::Changes - Lintian interface to .changes file data collectionSYNOPSIS¶
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"; }
DESCRIPTION¶
Lintian::Collect::Changes provides an interface to data for .changes files. It implements data collection methods specific to .changes files.CLASS METHODS¶
- new (PACKAGE)
- 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.
INSTANCE METHODS¶
In addition to the instance methods listed below, all instance methods documented in the Lintian::Collect module are also available.- files
- Returns a reference to a hash containing information about files listed in the .changes file. Each hash may have the following keys:
- name
- Name of the file.
- size
- The size of the file in bytes.
- section
- The archive section to which the file belongs.
- priority
- The priority of the file.
- checksums
- A hash with the keys being checksum algorithms and the values themselves being hashes containing
- sum
- The result of applying the given algorithm to the file.
- filesize
- The size of the file as given in the .changes section relating to the given checksum.
Needs-Info requirements for using files: "field ([FIELD[, DEFAULT]])" in Lintian::Collect
AUTHOR¶
Originally written by Adam D. Barratt <adsb@debian.org> for Lintian.SEE ALSO¶
lintian(1), Lintian::Collect2017-06-03 | Lintian v2.5.50.4 |