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

NAME

6       Dpkg::Deps::KnownFacts - list of installed real and virtual packages
7

DESCRIPTION

9       This object represents a list of installed packages and a list of
10       virtual packages provided (by the set of installed packages).
11

METHODS

13       $facts = Dpkg::Deps::KnownFacts->new();
14           Creates a new object.
15
16       $facts->add_installed_package($package, $version, $arch, $multiarch)
17           Records that the given version of the package is installed. If
18           $version/$arch is undefined we know that the package is installed
19           but we don't know which version/architecture it is. $multiarch is
20           the Multi-Arch field of the package. If $multiarch is undef, it
21           will be equivalent to "Multi-Arch: no".
22
23           Note that $multiarch is only used if $arch is provided.
24
25       $facts->add_provided_package($virtual, $relation, $version, $by)
26           Records that the "$by" package provides the $virtual package.
27           $relation and $version correspond to the associated relation given
28           in the Provides field (if present).
29
30       ($check, $param) = $facts->check_package($package)
31           $check is one when the package is found. For a real package, $param
32           contains the version. For a virtual package, $param contains an
33           array reference containing the list of packages that provide it
34           (each package is listed as [ $provider, $relation, $version ]).
35
36           This function is obsolete and should not be used.
37           Dpkg::Deps::KnownFacts is only meant to be filled with data and
38           then passed to Dpkg::Deps methods where appropriate, but it should
39           not be directly queried.
40
41       $facts->evaluate_simple_dep()
42           This method is private and should not be used except from within
43           Dpkg::Deps.
44

CHANGES

46   Version 1.01 (dpkg 1.16.1)
47       New option: Dpkg::Deps::KnownFacts->add_installed_package() now accepts
48       2 supplementary parameters ($arch and $multiarch).
49
50       Deprecated method: Dpkg::Deps::KnownFacts->check_package() is obsolete,
51       it should not have been part of the public API.
52
53   Version 1.00 (dpkg 1.15.6)
54       Mark the module as public.
55
56
57
581.19.7                            2020-02-18     Dpkg::Deps::KnownFacts(3perl)
Impressum