1Dpkg::Changelog::Debian(3perl) libdpkg-perl Dpkg::Changelog::Debian(3perl)
2
3
4
6 Dpkg::Changelog::Debian - parse Debian changelogs
7
9 This class represents a Debian changelog file as an array of changelog
10 entries (Dpkg::Changelog::Entry::Debian). It implements the generic
11 interface Dpkg::Changelog. Only methods specific to this
12 implementation are described below, the rest are inherited.
13
14 Dpkg::Changelog::Debian parses Debian changelogs as described in
15 deb-changelog(5).
16
17 The parser tries to ignore most cruft like # or /* */ style comments,
18 RCS keywords, Vim modelines, Emacs local variables and stuff from older
19 changelogs with other formats at the end of the file. NOTE: most of
20 these are ignored silently currently, there is no parser error issued
21 for them. This should become configurable in the future.
22
24 $count = $c->parse($fh, $description)
25 Read the filehandle and parse a Debian changelog in it, to store
26 the entries as an array of Dpkg::Changelog::Entry::Debian objects.
27 Any previous entries in the object are reset before parsing new
28 data.
29
30 Returns the number of changelog entries that have been parsed with
31 success.
32
34 Version 1.00 (dpkg 1.15.6)
35 Mark the module as public.
36
38 Dpkg::Changelog
39
40
41
421.21.9 2022-08-04 Dpkg::Changelog::Debian(3perl)