2 # Parse::DebianChangelog::Entry
4 # Copyright 2005 Frank Lichtenheld <frank@lichtenheld.de>
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 Parse::DebianChangelog::Entry - represents one entry in a Debian changelog
33 Creates a new object, no options.
41 Checks if the object is actually initialized with data. Due to limitations
42 in Parse::DebianChangelog this currently simply checks if one of the
43 fields Source, Version, Maintainer, Date, or Changes is initalized.
47 The following fields are available via accessor functions (all
48 fields are string values unless otherwise noted):
70 ExtraFields (all fields except for urgency as hash)
74 Header (the whole header in verbatim form)
78 Changes (the actual content of the bug report, in verbatim form)
82 Trailer (the whole trailer in verbatim form)
86 Closes (Array of bug numbers)
90 Maintainer (name B<and> email address)
98 Timestamp (Date expressed in seconds since the epoche)
102 ERROR (last parse error related to this entry in the format described
103 at Parse::DebianChangelog::get_parse_errors.
109 package Parse::DebianChangelog::Entry;
114 use base qw( Class::Accessor );
115 use Parse::DebianChangelog::Util qw( :all );
117 Parse::DebianChangelog::Entry->mk_accessors(qw( Closes Changes Maintainer
122 Trailer Timestamp ));
129 my $classname = shift;
131 bless( $self, $classname );
139 return !($self->{Changes}
142 || $self->{Maintainer}
151 Parse::DebianChangelog
155 Frank Lichtenheld, E<lt>frank@lichtenheld.deE<gt>
157 =head1 COPYRIGHT AND LICENSE
159 Copyright (C) 2005 by Frank Lichtenheld
161 This program is free software; you can redistribute it and/or modify
162 it under the terms of the GNU General Public License as published by
163 the Free Software Foundation; either version 2 of the License, or
164 (at your option) any later version.
166 This program is distributed in the hope that it will be useful,
167 but WITHOUT ANY WARRANTY; without even the implied warranty of
168 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
169 GNU General Public License for more details.
171 You should have received a copy of the GNU General Public License
172 along with this program; if not, write to the Free Software
173 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA