Debian::WNPP::Query(3pm)

Debian::WNPP::Query3pm

Offline storage of debian's work-needing package lists

Usage

    my $wnpp = Debian::WNPP::Query->new(
        {   cache_dir       => '/somewhere',
            network_enabled => 0,
            ttl             => 3600 * 24,
            bug_types       => [qw( ITP RFP )]
        }
    );
    my @bugs = $wnpp->bugs_for_package('ken-lee');

Overview

Debian::WNPP::Query provides a way to retrieve and cache the contents of Debian's "Work-needing and prospective packages" lists.

Constructor

new is the constructor. Initial field values are to be given as a hash reference.

If cache_file is given, it is read.

Fields

cache_file path

The path to the file holding the offline cache of the WNPP lists. If not specified, no cache is read or written.

ttl seconds

The time after which the on-disk cache is considered too old and WNPP pages are retrieved afresh. Ignored if cache_file is not defined. Defaults to 86400 (1 day).

bug_types arrayref

Specified which bug types to retrieve. For example, if you are interested in ITP and RFP bugs, there is no point in downloading, parsing and storing ITA/RFA/O bugs. By default all types of bugs are processed.

Methods

bugs_for_package(package)

Returns a list of bugs matching the given package name. Normally the list would contain only one bug, but there are no guarantees.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

From libdebian-source-perl 0.128 in Debian 13 (Trixie). Parsed by carta from the page's man source.