Lintian::ProcessableGroup(3) | Debian Package Checker | Lintian::ProcessableGroup(3) |
Lintian::ProcessableGroup -- A group of objects that Lintian can process
use Lintian::ProcessableGroup; my $group = Lintian::ProcessableGroup->new('lintian_2.5.0_i386.changes'); foreach my $proc ($group->get_processables){ printf "%s %s (%s)\n", $proc->pkg_name, $proc->pkg_version, $proc->pkg_type; } # etc.
Instances of this perl class are sets of processables. It allows at most one source and one changes or buildinfo package per set, but multiple binary packages (provided that the binary is not already in the set).
If the LAB parameter is given, all processables added to this group will be stored as a lab entry from LAB.
This is short hand for:
$group->add_processable( Lintian::Processable->new ($pkg_path, $pkg_type));
This will error out if an additional source or changes $proc is added to the group. Otherwise it will return a truth value if $proc was added.
This order is based on the original order that Lintian processed packages in and some parts of the code relies on this order.
Note if $type is given, then only processables of that type is returned.
If $group does not have a source processable, this method returns "undef".
If $group does not have a buildinfo processable, this method returns "undef".
If $group does not have a changes processable, this method returns "undef".
If $group does not have any binary processables then an empty list is returned.
Originally written by Niels Thykier <niels@thykier.net> for Lintian.
Lintian::Processable
2019-05-26 | Lintian v2.15.0 |