Changelog.pm 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 <https://www.gnu.org/licenses/>.
  12. package Dpkg::Control::Changelog;
  13. use strict;
  14. use warnings;
  15. our $VERSION = '1.00';
  16. use Dpkg::Control;
  17. use parent qw(Dpkg::Control);
  18. =encoding utf8
  19. =head1 NAME
  20. Dpkg::Control::Changelog - represent info fields output by dpkg-parsechangelog
  21. =head1 DESCRIPTION
  22. This object derives directly from Dpkg::Control with the type
  23. CTRL_CHANGELOG.
  24. =head1 METHODS
  25. =over 4
  26. =item $c = Dpkg::Control::Changelog->new()
  27. Create a new empty set of changelog related fields.
  28. =cut
  29. sub new {
  30. my $this = shift;
  31. my $class = ref($this) || $this;
  32. my $self = Dpkg::Control->new(type => CTRL_CHANGELOG, @_);
  33. return bless $self, $class;
  34. }
  35. =back
  36. =head1 CHANGES
  37. =head2 Version 1.00 (dpkg 1.15.6)
  38. Mark the module as public.
  39. =cut
  40. 1;