Debian...PP::Bug(3pm)

🌸 Debian::WNPP::Bug(3pm) β€” the NAME section

okay bestie, come SIT. this is Debian::WNPP::Bug, and it's literally a handy little representation of Debian WNPP bug reports πŸ’– like, the whole point is that a bug becomes a cute little thing you can carry around in your Perl code instead of a pile of raw data. iconic behavior, no cap.


✨ SYNOPSIS ✨

like, here's the vibe:

my $b = Debian::WNPP::Bug->new(
    {   number            => 1234,
        title             => 'RFP: nice-package -- do nice things easier',
        type              => 'rfp',
        package           => 'nice-package',
        short_description => 'do nice things together',
        submitter         => "Joe Developer <joe@developer.local>"
    }
);

print "$b";     # 1234

see how print "$b" just spits out 1234? that's the overload doing its little dance πŸ’…


πŸŽ€ CONSTRUCTOR πŸŽ€

  • new β€” builds you a brand new instance of the class. you gotta hand it the starting values as a hash reference. that's it, that's the whole job 🫢

πŸ¦‹ FIELDS πŸ¦‹

these are the lil attributes, the personality traits if you will:

  • number β€” the unique ID of the bug in the BTS. the bug's whole government name, basically.
  • title β€” the title of the bug. usually it looks something like
RFP: nice-package -- do nice things easier
  • type β€” which flavor of WNPP bug this is. it's one of:
    • RFP β€” request for package
    • ITP β€” intent to package
    • O β€” orphaned package
    • RFH β€” request for help
    • RFA β€” request for adoption
    • ITA β€” intent to adopt

(the acronyms are the moment, honestly 🌈)

  • package β€” the package name
  • short_description β€” the short description of the package
  • submitter β€” whoever filed the bug, written in the form "Full Name <email@address>"

πŸ’« OVERLOADS πŸ’«

  • "" β€” Debian::WNPP::Bug object instances stringify via the method. the default as_string method returns the bug number. yes ma'am, that's why print "$b" gave you 1234 up there. it's giving effortless ⭐

πŸ‘‘ METHODS πŸ‘‘

  • type_and_number β€” hands you back a string with the bug type and number in the form TYPE #number, like for example "ITP #1234". so useful, so concise, obsessed.
  • as_string β€” this is the one the "" overload uses. it returns the bug number. that's the whole thing πŸ’œ

🧚 AUTHOR 🧚

Damyan Ivanov <dmn@debian.org> β€” thank you for your service, king πŸ‘‘


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.

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.

bestie pls note: that "WITHOUT ANY WARRANTY" part is real. like, fr fr, no warranty. read the license, it's not a vibe, it's a legal thing πŸ™ˆ

and that's the whole page, periodt πŸ“ this was perl v5.40.1, dated 2026-05-08, brought to you by the Debian...PP::Bug(3pm) manual. mwah, go file some WNPP bugs responsibly βœ¨πŸ’…

πŸ“¦ where this page comes from