---
name: "Lintian::ProcessablePool"
section: "3"
platform: "linux"
package: "lintian"
version: "2.15.0"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Lintian::ProcessablePool"
---

# Lintian::ProcessablePool(3)

## NAME

Lintian::ProcessablePool -- Pool of processables

## SYNOPSIS

```
 use Lintian::ProcessablePool;

 my $pool = Lintian::ProcessablePool->new;
 $pool->add_file('foo.changes');
 $pool->add_file('bar.dsc');
 $pool->add_file('baz.deb');
 $pool->add_file('qux.buildinfo');
 foreach my $gname ($pool->get_group_names){
    my $group = $pool->get_group($gname);
    process($gname, $group);
 }
```

## METHODS

- Lintian::ProcessablePool-\>new (\[LAB\])

  Creates a new empty pool.

  If LAB is given, it is assumed to be a Lintian::Lab.  In this case, any processable added to this pool will be stored as a lab entry from LAB.

- $pool-\>add\_file($file)

  Adds a file to the pool.  The `$file` will be turned into a processable and grouped together with other processables from the same source package (if any).

- $pool-\>add\_proc ($proc)

  Adds a processable to the pool.

- $pool-\>get\_group\_names

  Returns the name of all the groups in this pool.

  Do not modify the list nor its contents.

- $pool-\>get\_group($name)

  Returns the group called `$name` or `"undef"` if there is no group called `$name`.

- $pool-\>get\_groups

  Returns all the groups in the pool.

  Do not modify the list nor its contents.

- $pool-\>empty

  Returns true if the pool is empty.

## AUTHOR

Originally written by Niels Thykier \<niels@thykier.net\> for Lintian.

## SEE ALSO

[**lintian**(1)](/lintian/1.md)

Lintian::Processable

Lintian::ProcessableGroup
