Changelog.pm 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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
  11. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. package Dpkg::Control::Changelog;
  13. use strict;
  14. use warnings;
  15. use Dpkg::Control;
  16. use base 'Dpkg::Control';
  17. =head1 NAME
  18. Dpkg::Control::Changelog - represent info fields output by dpkg-parsechangelog
  19. =head1 DESCRIPTION
  20. This object derives directly from Dpkg::Control with the type
  21. CTRL_CHANGELOG.
  22. =head1 FUNCTIONS
  23. =over 4
  24. =item $c = Dpkg::Control::Changelog->new()
  25. Create a new empty set of changelog related fields.
  26. =cut
  27. sub new {
  28. my $this = shift;
  29. my $class = ref($this) || $this;
  30. my $self = Dpkg::Control->new(type => CTRL_CHANGELOG, @_);
  31. return bless $self, $class;
  32. }
  33. =back
  34. =head1 AUTHOR
  35. Raphael Hertzog <hertzog@debian.org>.
  36. =cut
  37. 1;