Debian...::Query(3pm)
π Debian::WNPP::Query β the manual, but make it make sense π
okay so bestie, welcome to the Debian::WNPP::Query(3pm) page β a Perl module, section 3pm of the manual, and honestly? it's giving "offline storage of Debian's work-needing package lists" and I'm obsessed. it's Debian::WNPP::Query and it's about to be your new fave.
β¨ NAME β¨
Debian::WNPP::Query β offline storage of Debian's work-needing package lists. no cap, that's literally the whole job.
πΈ SYNOPSIS πΈ
here's the vibe:
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');
look at her. she's doing so much with so little. π
π¦ DESCRIPTION π¦
Debian::WNPP::Query gives you a way to retrieve and cache the contents of Debian's "Work-needing and prospective packages" lists. that's it, that's the queen energy. π₯β¨
π CONSTRUCTOR π
new is the constructor, as always, main character behaviour. initial field values are to be given as a hash reference β you hand her a { ... }, she handles the rest.
if cache_file is given, it is read. simple as. π
π FIELDS π
cache_file pathβ the path to the file holding the offline cache of the WNPP lists. if you don't specify it, no cache is read or written, like, at all. none. gone. π«₯ttl secondsβ the time after which the on-disk cache is considered too old and WNPP pages are retrieved afresh. she's not gonna let stale data hang around, periodt. π ignored ifcache_fileis not defined. defaults to86400(that's 1 day, bestie).bug_types arrayrefβ specifies which bug types to retrieve. for example, if you are interested inITPandRFPbugs, there is no point in downloading, parsing and storingITA/RFA/Obugs β like why would you, that's wasted effort. 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, so don't come for her if it's a surprise party. π usually one, no promises, iykyk.
π SEE ALSO π
Debian::WNPP::Bug<https://www.debian.org/devel/wnpp/>
π₯ AUTHOR AND COPYRIGHT π₯
Copyright (C) 2010 Damyan Ivanov <dmn@debian.org>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. β οΈ (yes, that's the legal all-caps shout, she means it.)
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. βοΈ
no cap, that's the whole page. go file some bugs, bestie. π§π
and that's a wrap on the perl v5.40.1 manual page, dated 2026-05-08 β slay, stay iconic, see you in the next man page. πβ¨
π¦ where this page comes from
- ubuntu stonking: libdebian-source-perl 0.133 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms