Debbugs::Bugs(3pm)
β¨ Debbugs::Bugs β the bug-picking bestie of debbugs β¨
okay so real talk, this is Debbugs::Bugs, a Perl module from the User Contributed Perl Documentation, and it's literally the glow-up replacement for every messy way you used to select bugs. it lives in the 3pm man section bestie, and it's giving main character energy for bug selection. π
πΈ NAME πΈ
Debbugs::Bugs β bug selection routines for debbugs πβ¨
π SYNOPSIS π
use Debbugs::Bugs qw(get_bugs);
like, that's it. that's the whole vibe. π«Ά
π DESCRIPTION π
so basically this module is the β¨replacementβ¨ for ALL of the various methods of selecting different types of bugs. yes, all of them. she ate and left no crumbs. π
she implements a single function, get_bugs, which defines the master interface for selecting bugs. one function to rule them all, periodt. π
and the way she works is iconic β she attempts to use subsidiary functions to actually do the selection, in the order specified in the configuration files. π₯
ngl bestie, unless you're literally insane, they should be in order from fastest (and often most incomplete) to slowest (and most complete). that's just the vibe check okay. π
π BUGS π
(no content here in the original, bestie β she's just sitting there, silently, like a mood. π)
π FUNCTIONS π
π¦ get_bugs
get_bugs()
β¨ Parameters β¨
okay so listen β the following parameters can either be a single scalar OR a reference to an array. the parameters are ANDed together (all of them gotta match, no cap), and the elements of arrayrefs in a parameter are ORed (any of them matching is enough, slay). future versions of this may allow for limited regular expressions, and/or more complex expressions β so like, watch this space bestie. π
packageβ name of the binary package π¦srcβ name of the source package πmaintβ address of the maintainer π§submitterβ address of the submitter πseverityβ severity of the bug π¨statusβ status of the bug πtagβ bug tags π·οΈownerβ owner of the bug π€correspondentβ address of someone who sent mail to the log βοΈaffectsβ bugs which affect this package π―distβ distribution (ngl I don't know about this one yet π)bugsβ list of bugs to search within πfunctionβ see description below π
π Special options π
these are the special options used to modulate how the searches are performed β the little seasoning on top, iykyk. π§β¨
archiveβ whether to search archived bugs or normal bugs; defaults to false. and as a special case bestie, ifarchiveis'both', then both archived and unarchived bugs are returned. iconic behaviour honestly. πusertagsβ set of usertags and the bugs they are applied to π·οΈ
π§ Subsidiary routines π§
all subsidiary routines get passed exactly the same set of options as get_bugs. and if for some reason they are unable to handle the options passed (like, for example, they don't have the right type of index for the type of selection) they should die as early as possible. dramatic? yes. necessary? also yes. π
usingParams::Validateand/ordiewhen files don't exist makes this fairly trivial, so like, no excuses bestie. β¨
this function will then immediately move on to the next subroutine, giving it the same arguments. she's efficient like that. πββοΈπ¨
β function β
this option allows you to provide an arbitrary function which will be given the information in the index.db file. and bestie, I gotta be honest with you β this will be super, super slow, so only do this if there's literally no other way to write the search. like, last resort energy fr fr. π
you'll be given a list (which you can turn into a hash) like the following:
(pkg => ['a','b'], # may be a scalar (most common)
bug => 1234,
status => 'pending',
submitter => 'boo@baz.com',
severity => 'serious',
tags => ['a','b','c'], # may be an empty arrayref
)
and the function should return 1 if the bug should be included; 0 if the bug should not. simple as that, no notes. β
π count_bugs
count_bugs(function => sub {...})
uses a subroutine to classify bugs into categories and return the number of bugs which fall into those categories. counting era π’β¨
π newest_bug
my $bug = newest_bug();
returns the bug number of the newest bug, which is nextnumber-1. fresh off the press, the newest baby bug π£
π§ bug_filter
bug_filter
allows filtering bugs on commonly used criteria. she's picky and that's valid π
π« get_bugs_by_idx
this routine uses the by-$index.idx indicies to try to speed up searches. yes she's trying to be fast, let her cook π₯
πΈ get_bugs_flatfile
this is the fallback search routine. it should be able to complete all searches. [or at least, that's the idea.] π«
π PRIVATE FUNCTIONS π
π __handle_pkg_src_and_maint
my @packages = __handle_pkg_src_and_maint(map {exists $param{$_}?($_,$param{$_}):()}
qw(package src maint)
);
turn package/src/maint into a list of packages. boom, transformed. β¨π¦
and that's the whole page bestie!! this was perl v5.40.1, dated 2026-04-27, from the Debbugs::Bugs(3pm) manual in the User Contributed Perl Documentation. go forth and select your bugs responsibly, ily, mwah ππβ¨π
π¦ where this page comes from
- ubuntu stonking: libdebbugs-perl 2.6.5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms