~diwic/dpkg/original-maintainer

« back to all changes in this revision

Viewing changes to scripts/Dpkg/Control/Changelog.pm

  • Committer: James Westby
  • Author(s): Raphael Hertzog
  • Date: 2009-12-07 09:24:31 UTC
  • mto: (1.2.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: james.westby@canonical.com-20091207092431-julffpexyz8z8d26
* Fix Dpkg::Index::get() and remove(). Thanks to Roderich Schupp
  <roderich.schupp@googlemail.com> for the patch. Closes: #558595
* Modify implementation of "3.0 (quilt)" source format to not be
  behave differently depending on whether quilt is installed or not.
  The option --without-quilt is thus gone and dpkg-source creates
  and relies on the .pc directory to know whether patches are applied
  or not. Closes: #557667
* Add new dpkg-source option --single-debian-patch supported by the source
  format "3.0 (quilt)" so that it behaves more like 1.0 and its single diff
  that is constantly updated with all upstream changes. Useful if the
  workflow is VCS based and can't generate a full patch set.
* dpkg-source now uses debian/source/patch-header as header of the automatic
  Debian patch in format "3.0 (quilt)".
* Fix Debian changelog parser so that the trailer line is again checked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 <http://www.gnu.org/licenses/>.
 
15
 
 
16
package Dpkg::Control::Changelog;
 
17
 
 
18
use strict;
 
19
use warnings;
 
20
 
 
21
use Dpkg::Control;
 
22
use base 'Dpkg::Control';
 
23
 
 
24
=head1 NAME
 
25
 
 
26
Dpkg::Control::Changelog - represent info fields output by dpkg-parsechangelog
 
27
 
 
28
=head1 DESCRIPTION
 
29
 
 
30
This object derives directly from Dpkg::Control with the type
 
31
CTRL_CHANGELOG.
 
32
 
 
33
=head1 FUNCTIONS
 
34
 
 
35
=over 4
 
36
 
 
37
=item $c = Dpkg::Control::Changelog->new()
 
38
 
 
39
Create a new empty set of changelog related fields.
 
40
 
 
41
=cut
 
42
 
 
43
sub new {
 
44
    my $this = shift;
 
45
    my $class = ref($this) || $this;
 
46
    my $self = Dpkg::Control->new(type => CTRL_CHANGELOG, @_);
 
47
    return bless $self, $class;
 
48
}
 
49
 
 
50
=back
 
51
 
 
52
=head1 AUTHOR
 
53
 
 
54
Raphael Hertzog <hertzog@debian.org>.
 
55
 
 
56
=cut
 
57
 
 
58
1;