1Dpkg::Changelog::Parse(3perl)    libdpkg-perl    Dpkg::Changelog::Parse(3perl)
2
3
4

NAME

6       Dpkg::Changelog::Parse - generic changelog parser for
7       dpkg-parsechangelog
8

DESCRIPTION

10       This module provides a set of functions which reproduce all the
11       features of dpkg-parsechangelog.
12

FUNCTIONS

14       $fields = changelog_parse_debian(%opt)
15           This function is deprecated, use changelog_parse() instead, with
16           the changelog format set to "debian".
17
18       $fields = changelog_parse_plugin(%opt)
19           This function is deprecated, use changelog_parse() instead.
20
21       $fields = changelog_parse(%opt)
22           This function will parse a changelog. In list context, it returns
23           as many Dpkg::Control objects as the parser did create. In scalar
24           context, it will return only the first one. If the parser did not
25           return any data, it will return an empty list in list context or
26           undef on scalar context. If the parser failed, it will die.
27
28           The changelog file that is parsed is debian/changelog by default
29           but it can be overridden with $opt{file}. The default output format
30           is "dpkg" but it can be overridden with $opt{format}.
31
32           The parsing itself is done by a parser module (searched in the
33           standard perl library directories. That module is named according
34           to the format that it is able to parse, with the name capitalized.
35           By default it is either Dpkg::Changelog::Debian (from the "debian"
36           format) or the format name looked up in the 40 last lines of the
37           changelog itself (extracted with this perl regular expression
38           "\schangelog-format:\s+([0-9a-z]+)\W"). But it can be overridden
39           with $opt{changelogformat}.
40
41           If $opt{compression} is false, the file will be loaded without
42           compression support, otherwise by default compression support is
43           disabled if the file is the default.
44
45           All the other keys in %opt are forwarded to the parser module
46           constructor.
47

CHANGES

49   Version 1.03 (dpkg 1.19.0)
50       New option: 'compression' in changelog_parse().
51
52   Version 1.02 (dpkg 1.18.8)
53       Deprecated functions: changelog_parse_debian(),
54       changelog_parse_plugin().
55
56       Obsolete options: $forceplugin, $libdir.
57
58   Version 1.01 (dpkg 1.18.2)
59       New functions: changelog_parse_debian(), changelog_parse_plugin().
60
61   Version 1.00 (dpkg 1.15.6)
62       Mark the module as public.
63
64
65
661.19.7                            2020-02-18     Dpkg::Changelog::Parse(3perl)
Impressum