Changelog.pm 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright © 2009 Raphaël Hertzog <hertzog@debian.org>
  2. # This program is free software; you can redistribute it and/or modify
  3. # it under the terms of the GNU General Public License as published by
  4. # the Free Software Foundation; either version 2 of the License, or
  5. # (at your option) any later version.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. # GNU General Public License for more details.
  10. # You should have received a copy of the GNU General Public License along
  11. # with this program; if not, write to the Free Software Foundation, Inc.,
  12. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  13. package Dpkg::Control::Changelog;
  14. use strict;
  15. use warnings;
  16. use Dpkg::Control;
  17. use base 'Dpkg::Control';
  18. =head1 NAME
  19. Dpkg::Control::Changelog - represent info fields output by dpkg-parsechangelog
  20. =head1 DESCRIPTION
  21. This object derives directly from Dpkg::Control with the type
  22. CTRL_CHANGELOG.
  23. =head1 FUNCTIONS
  24. =over 4
  25. =item $c = Dpkg::Control::Changelog->new()
  26. Create a new empty set of changelog related fields.
  27. =cut
  28. sub new {
  29. my $this = shift;
  30. my $class = ref($this) || $this;
  31. my $self = Dpkg::Control->new(type => CTRL_CHANGELOG, @_);
  32. return bless $self, $class;
  33. }
  34. =back
  35. =head1 AUTHOR
  36. Raphael Hertzog <hertzog@debian.org>.
  37. =cut
  38. 1;