summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-08-10 02:51:10 +0200
committerGuillem Jover <guillem@debian.org>2019-11-26 02:42:44 +0100
commit895a2e525adfd90a57e1e4dfbcc18bb0c1ca64b4 (patch)
treed9b30fed63f1e4ef15c01363391c7683d7a9f0ec
parent88d2ceac86373a3ccc37fc7ceff1319a4528a889 (diff)
downloaddpkg-895a2e525adfd90a57e1e4dfbcc18bb0c1ca64b4.tar.gz
Dpkg::Changelog: Remove obsolete methods dpkg() and rfc822()
Bump module version to 2.00.
-rw-r--r--debian/changelog1
-rw-r--r--scripts/Dpkg/Changelog.pm36
2 files changed, 6 insertions, 31 deletions
diff --git a/debian/changelog b/debian/changelog
index d2a040681..5c37bcb23 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -48,6 +48,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium
allow non-equal version relations in virtual provides. Closes: #930317
- Dpkg: Remove internal lowercase variables $version, $progname,
$admindir, $dpkglibdir and $pkgdatadir.
+ - Dpkg::Changelog: Remove obsolete methods dpkg() and rfc822().
* Documentation:
- man: Fix uncommon wording constructs.
- man: Use a minus sign for a literal string.
diff --git a/scripts/Dpkg/Changelog.pm b/scripts/Dpkg/Changelog.pm
index 060081079..1485ae583 100644
--- a/scripts/Dpkg/Changelog.pm
+++ b/scripts/Dpkg/Changelog.pm
@@ -34,7 +34,7 @@ package Dpkg::Changelog;
use strict;
use warnings;
-our $VERSION = '1.01';
+our $VERSION = '2.00';
use Carp;
@@ -670,36 +670,6 @@ sub format_range {
}
}
-=item $control = $c->dpkg($range)
-
-This is a deprecated alias for $c->format_range('dpkg', $range).
-
-=cut
-
-sub dpkg {
- my ($self, $range) = @_;
-
- warnings::warnif('deprecated',
- 'deprecated method, please use format_range("dpkg", $range) instead');
-
- return $self->format_range('dpkg', $range);
-}
-
-=item @controls = $c->rfc822($range)
-
-This is a deprecated alias for C<scalar c->format_range('rfc822', $range)>.
-
-=cut
-
-sub rfc822 {
- my ($self, $range) = @_;
-
- warnings::warnif('deprecated',
- 'deprecated method, please use format_range("rfc822", $range) instead');
-
- return scalar $self->format_range('rfc822', $range);
-}
-
=back
=head1 RANGE SELECTION
@@ -779,6 +749,10 @@ with only one of the options specified.
=head1 CHANGES
+=head2 Version 2.00 (dpkg 1.20.0)
+
+Remove methods: $c->dpkg(), $c->rfc822().
+
=head2 Version 1.01 (dpkg 1.18.8)
New method: $c->format_range().