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