Dpkg::Deps::Multiple(3perl)
π NAME π
Okay bestie, this is Dpkg::Deps::Multiple(3perl) from libdpkg-perl β the base module to represent multiple dependencies π
. That's the whole NAME moment, and it's lowkey iconic.
π¦ DESCRIPTION π¦
The Dpkg::Deps::Multiple module provides objects implementing various types of dependencies. It is the base class for Dpkg::Deps::{AND,OR,Union} β so those are the little subclasses doing their main character thing on top of it. Periodt.
β¨ METHODS β¨
Here's the method lineup, bestie. Signatures stay exactly as written, no cap:
$dep = Dpkg::Deps::Multiple->new(@deps);
Creates a new object, with the list of dependencies in @deps. New object, new dep list, slay.
$dep->reset()
Clears any dependency information stored in $dep so that $dep->is_empty() returns true. A little factory reset for your dep object β¨.
$dep->add(@deps)
Adds new dependency objects at the end of the list. Just append and go.
@dep_list = $dep->get_deps()
Returns a list of sub-dependencies. Gimme the list, bestie.
$dep->sort()
Sorts alphabetically the internal list of dependencies. Alphabetical order ate, fr fr.
$bool = $dep->arch_is_concerned($arch)
Returns true if at least one of the sub-dependencies apply to this architecture.
$dep->reduce_arch($arch)
Simplifies the dependencies to contain only information relevant to the given architecture. The non-relevant sub-dependencies are removed.
This trims off the architecture restriction list of Dpkg::Deps::Simple objects.
@pkgname_list = $dep->has_arch_restriction()
Returns the list of package names that have such a restriction.
$bool = $dep->profile_is_concerned()
Returns true if at least one of the sub-dependencies apply to this profile.
$dep->reduce_profiles()
Simplifies the dependencies to contain only information relevant to the given profile. The non-relevant sub-dependencies are removed.
This trims off the profile restriction list of Dpkg::Deps::Simple objects.
$bool = $dep->is_empty()
Returns true if the dependency is empty and doesn't contain any useful information. This is true when a (descendant of) Dpkg::Deps::Multiple contains an empty list of dependencies.
$bool = $dep->merge_union($other_dep)
This method is not meaningful for this object, and will always croak. Like, it's not a vibe check you can pass β it's a hard no π.
π CHANGES π
π Version 1.02 (dpkg 1.17.10)
New methods: Add $dep->profile_is_concerned() and $dep->reduce_profiles().
π Version 1.01 (dpkg 1.16.1)
New method: Add $dep->reset().
π Version 1.00 (dpkg 1.15.6)
Mark the module as public.
That's the whole page, bestie π«Ά β from libdpkg-perl, version 1.23.11-dirty, dated 2026-09-09, and the manual is Dpkg::Deps::Multiple(3perl). Byeeee, go sort some deps πβ¨
π¦ where this page comes from
- arch rolling: dpkg 1.23.11-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms