Lintian::Debian::Control(3)
π Lintian::Debian::Control β¨
okay bestie, welcome to Lintian::Debian::Control, a little corner of the Lintian manual (the Debian Package Checker one, section 3, iykyk) that is literally just the β¨interface to d/control fieldsβ¨. think of it as the friend who knows where every single field lives in debian/control and will tell you if you ask nicely. π
πΈ SYNOPSIS πΈ
use Lintian::Debian::Control;
that's it. that's the whole vibe. one line and you're in. π
π¦ DESCRIPTION π¦
Lintian::Debian::Control provides access to fields in d/control.
no cap. it hands you the fields, you do your thing. periodt. β¨
π INSTANCE METHODS π
so the page lists the methods out like this β and yes, the original literally writes them as item =item source_fields =item installable_fields_by_name, which is giving stray-item typo energy and we are keeping it, because the rule is we keep everything. π anyway, the methods go a lil something like this:
source_fieldsβ one of the methods in the house, straight from the source's own quirky list.installable_fields_by_nameβ also on that list, same deal.loadinstallablesβ Returns a list of the binary and udeb packages listed in thedebian/control.installable_package_type(NAME) β Returns package type based on value of thePackage-Type(or if absent,X-Package-Type) field. If the field is omitted, the default value"deb"is used.
If NAME is not an installable listed in the source packages debian/control file, this method return "undef".
bestie this one is doing a whole two-step: checkPackage-Type, and if that's not there, go look atX-Package-Type. if neither shows up, you get"deb"by default. and if the name you passed isn't even an installable in thatdebian/control, you get"undef"back β not an error, just vibes. π
installable_fields(PACKAGE) β Returns theDeb822::Sectionobject for the installable. Returns an empty object if the installable does not exist.
you ask for a package's fields, you get a whole Deb822::Section object. β¨ if that installable doesn't exist? you get an empty object. no drama, just a sad little nothing object. π«Ά
π§ AUTHOR π§
Originally written by Russ Allbery <rra@debian.org> for Lintian. Amended by Felix Lechner <felix.lechner@lease-up.com> for Lintian.
giving credit where credit is due, always. π
π SEE ALSO π
okay and finally, the lil signature at the bottom of the page: this is from Lintian v2.139.0ubuntu2, dated 2026-10-08, and it's the Lintian::Debian::Control(3) page. mwah. π go read your d/control fields and slay, bestie. πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: lintian 2.139.0ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms