Dpkg::Deps::OR(3perl) libdpkg-perl Dpkg::Deps::OR(3perl)
Dpkg::Deps::OR - list of OR dependencies
| Use Case | Command | Description |
|---|---|---|
| Create an OR dependency object | my $dep = Dpkg::Deps::OR->new(); | Instantiate a new OR dependency list |
| Output dependency string | $dep->output([$fh]) | Print the dependency using " | " joiner |
| Check implication | $dep->implies($other_dep) | Returns 1, 0, or undef for implication |
| Evaluate dependency | $dep->get_evaluation($facts) | Evaluate with installed packages and virtuals |
| Simplify dependency | $dep->simplify_deps($facts, @assumed_deps) | Reduce dependency given known facts |
This class represents a list of dependencies of which only one must be met for the dependency to be true. It inherits from Dpkg::Deps::Multiple.
$dep->output([$fh]) — The output method uses " | " to join the list of sub-dependencies.$dep->implies($other_dep) — Returns 1 when $dep implies $other_dep. Returns 0 when $dep implies NOT($other_dep). Returns undef when there's no implication. $dep and $other_dep do not need to be of the same type.$dep->get_evaluation($facts) — Evaluates the dependency given a list of installed packages and a list of virtual packages provided. These lists are part of the Dpkg::Deps::KnownFacts object given as parameters. Returns 1 when it's true, 0 when it's false, undef when some information is lacking to conclude.$dep->simplify_deps($facts, @assumed_deps) — Simplifies the dependency as much as possible given the list of facts (see object Dpkg::Deps::KnownFacts) and a list of other dependencies that are known to be true.Mark the module as public.
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-26 01:35 @216.73.217.127
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)