Lintian::Lab(3) | Debian Package Checker | Lintian::Lab(3) |
Lintian::Lab -- Interface to the Lintian Lab
use Lintian::Lab; my $lab = Lintian::Lab->new; if (!$lab->exists) { $lab->create; } $lab->open; $lab->close;
This module provides an abstraction from "How and where" packages are placed. It handles creation and deletion of the Lintian Lab itself as well as providing access to the entries.
Note: If the lab is open, it also exists. However, if the lab is closed then the lab may or may not exist (see "exists").
Note: This never implies that the lab is open. Though it may imply the lab is closed (see "is_open").
The first argument must be a processable.
The lab will not be opened by this method. This should be done afterwards by invoking the "open" method.
OPTS (if present) is a hashref containing options. The following options are accepted:
Note: This does nothing if the lab appears to already exists.
This will croak if the lab is already open. It may also croak for the same reasons as "create".
Note: It is not possible to pass options to the creation of the lab. If special options are required, please use "create" directly.
Note: The lab will be deleted unless it was created with "keep-lab" (see "create").
The lab root dir will be removed as well on success.
On success, this will return a truth value. The directory path will be set to the empty string.
On error, this method will croak.
If the lab has already been removed (or does not exist), this will return a truth value.
Niels Thykier <niels@thykier.net>
Based on the work of various others.
2019-05-26 | Lintian v2.15.0 |