1Dpkg::Deps::Multiple(3perl)      libdpkg-perl      Dpkg::Deps::Multiple(3perl)
2
3
4

NAME

6       Dpkg::Deps::Multiple - base module to represent multiple dependencies
7

DESCRIPTION

9       The Dpkg::Deps::Multiple module provides objects implementing various
10       types of dependencies. It is the base class for
11       Dpkg::Deps::{AND,OR,Union}.
12

METHODS

14       $dep = Dpkg::Deps::Multiple->new(%opts);
15           Creates a new object.
16
17       $dep->reset()
18           Clears any dependency information stored in $dep so that
19           $dep->is_empty() returns true.
20
21       $dep->add(@deps)
22           Adds new dependency objects at the end of the list.
23
24       $dep->get_deps()
25           Returns a list of sub-dependencies.
26
27       $dep->sort()
28           Sorts alphabetically the internal list of dependencies.
29
30       $dep->arch_is_concerned($arch)
31           Returns true if at least one of the sub-dependencies apply to this
32           architecture.
33
34       $dep->reduce_arch($arch)
35           Simplifies the dependencies to contain only information relevant to
36           the given architecture. The non-relevant sub-dependencies are
37           simply removed.
38
39           This trims off the architecture restriction list of
40           Dpkg::Deps::Simple objects.
41
42       $dep->has_arch_restriction()
43           Returns the list of package names that have such a restriction.
44
45       $dep->profile_is_concerned()
46           Returns true if at least one of the sub-dependencies apply to this
47           profile.
48
49       $dep->reduce_profiles()
50           Simplifies the dependencies to contain only information relevant to
51           the given profile. The non-relevant sub-dependencies are simply
52           removed.
53
54           This trims off the profile restriction list of Dpkg::Deps::Simple
55           objects.
56
57       $dep->is_empty()
58           Returns true if the dependency is empty and doesn't contain any
59           useful information. This is true when a (descendant of)
60           Dpkg::Deps::Multiple contains an empty list of dependencies.
61
62       $dep->merge_union($other_dep)
63           This method is not meaningful for this object, and will always
64           croak.
65

CHANGES

67   Version 1.02 (dpkg 1.17.10)
68       New methods: Add $dep->profile_is_concerned() and
69       $dep->reduce_profiles().
70
71   Version 1.01 (dpkg 1.16.1)
72       New method: Add $dep->reset().
73
74   Version 1.00 (dpkg 1.15.6)
75       Mark the module as public.
76
77
78
791.19.7                            2020-07-27       Dpkg::Deps::Multiple(3perl)
Impressum