File: | Dpkg/Control/Changelog.pm |
Coverage: | 92.0% |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | # Copyright © 2009 Raphaël Hertzog <hertzog@debian.org> | ||||||
2 | |||||||
3 | # This program is free software; you can redistribute it and/or modify | ||||||
4 | # it under the terms of the GNU General Public License as published by | ||||||
5 | # the Free Software Foundation; either version 2 of the License, or | ||||||
6 | # (at your option) any later version. | ||||||
7 | |||||||
8 | # This program is distributed in the hope that it will be useful, | ||||||
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||||
11 | # GNU General Public License for more details. | ||||||
12 | |||||||
13 | # You should have received a copy of the GNU General Public License | ||||||
14 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | ||||||
15 | |||||||
16 | =encoding utf8 | ||||||
17 | |||||||
18 - 27 | =head1 NAME Dpkg::Control::Changelog - represent info fields output by dpkg-parsechangelog =head1 DESCRIPTION This class derives directly from L<Dpkg::Control> with the type CTRL_CHANGELOG. =cut | ||||||
28 | |||||||
29 | package Dpkg::Control::Changelog 1.00; | ||||||
30 | |||||||
31 | 18 18 18 | 42 15 262 | use strict; | ||||
32 | 18 18 18 | 31 12 453 | use warnings; | ||||
33 | |||||||
34 | 18 18 18 | 35 13 742 | use Dpkg::Control; | ||||
35 | |||||||
36 | 18 18 18 | 36 17 35 | use parent qw(Dpkg::Control); | ||||
37 | |||||||
38 - 46 | =head1 METHODS =over 4 =item $c = Dpkg::Control::Changelog->new() Create a new empty set of changelog related fields. =cut | ||||||
47 | |||||||
48 | sub new { | ||||||
49 | 2457 | 1 | 2387 | my ($this, @args) = @_; | |||
50 | 2457 | 4562 | my $class = ref($this) || $this; | ||||
51 | 2457 | 3640 | my $self = Dpkg::Control->new(type => CTRL_CHANGELOG, @args); | ||||
52 | 2457 | 3117 | return bless $self, $class; | ||||
53 | } | ||||||
54 | |||||||
55 | =back | ||||||
56 | |||||||
57 - 63 | =head1 CHANGES =head2 Version 1.00 (dpkg 1.15.6) Mark the module as public. =cut | ||||||
64 | |||||||
65 | 1; |