1Dpkg::Changelog::Entry::Debian(3pelrilb)dpkg-pDeprklg::Changelog::Entry::Debian(3perl)
2
3
4
6 Dpkg::Changelog::Entry::Debian - represents a Debian changelog entry
7
9 This class represents a Debian changelog entry. It implements the
10 generic interface Dpkg::Changelog::Entry. Only functions specific to
11 this implementation are described below, the rest are inherited.
12
14 @items = $entry->get_change_items()
15 Return a list of change items. Each item contains at least one
16 line. A change line starting with an asterisk denotes the start of
17 a new item. Any change line like ""[ Raphaƫl Hertzog ]"" is
18 treated like an item of its own even if it starts a set of items
19 attributed to this person (the following line necessarily starts a
20 new item).
21
22 @errors = $entry->parse_header()
23 @errors = $entry->parse_trailer()
24 Return a list of errors. Each item in the list is an error message
25 describing the problem. If the empty list is returned, no errors
26 have been found.
27
28 $entry->normalize()
29 Normalize the content. Strip whitespaces at end of lines, use a
30 single empty line to separate each part.
31
32 $src = $entry->get_source()
33 Return the name of the source package associated to the changelog
34 entry.
35
36 $ver = $entry->get_version()
37 Return the version associated to the changelog entry.
38
39 @dists = $entry->get_distributions()
40 Return a list of target distributions for this version.
41
42 $fields = $entry->get_optional_fields()
43 Return a set of optional fields exposed by the changelog entry. It
44 always returns a Dpkg::Control object (possibly empty though).
45
46 $urgency = $entry->get_urgency()
47 Return the urgency of the associated upload.
48
49 $maint = $entry->get_maintainer()
50 Return the string identifying the person who signed this changelog
51 entry.
52
53 $time = $entry->get_timestamp()
54 Return the timestamp of the changelog entry.
55
56 $time = $entry->get_timepiece()
57 Return the timestamp of the changelog entry as a Time::Piece
58 object.
59
60 This function might return undef if there was no timestamp.
61
63 $bool = match_header($line)
64 Checks if the line matches a valid changelog header line.
65
66 $bool = match_trailer($line)
67 Checks if the line matches a valid changelog trailing line.
68
69 @closed_bugs = find_closes($changes)
70 Takes one string as argument and finds "Closes: #123456, #654321"
71 statements as supported by the Debian Archive software in it.
72 Returns all closed bug numbers in an array.
73
75 Version 2.00 (dpkg 1.20.0)
76 Remove methods: $entry->check_header(), $entry->check_trailer().
77
78 Hide variables: $regex_header, $regex_trailer.
79
80 Version 1.03 (dpkg 1.18.8)
81 New methods: $entry->get_timepiece().
82
83 Version 1.02 (dpkg 1.18.5)
84 New methods: $entry->parse_header(), $entry->parse_trailer().
85
86 Deprecated methods: $entry->check_header(), $entry->check_trailer().
87
88 Version 1.01 (dpkg 1.17.2)
89 New functions: match_header(), match_trailer()
90
91 Deprecated variables: $regex_header, $regex_trailer
92
93 Version 1.00 (dpkg 1.15.6)
94 Mark the module as public.
95
96
97
981.21.8 2022-06-D0p5kg::Changelog::Entry::Debian(3perl)