diff options
author | Guillem Jover <guillem@debian.org> | 2019-11-16 00:32:09 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-11-26 02:42:45 +0100 |
commit | 605d9f8a8a59c8413a9ba0ab260b6f10a7ac1c70 (patch) | |
tree | c5eee67ab26d0ff704438ec0445678698acd6c46 | |
parent | 27228611177b0cde44325df2ac8c32ae6bc6d2eb (diff) | |
download | dpkg-605d9f8a8a59c8413a9ba0ab260b6f10a7ac1c70.tar.gz |
Dpkg::Source::Package: Remove and hide internal lowercase variables
Bump module version to 2.00.
-rw-r--r-- | debian/changelog | 3 | ||||
-rw-r--r-- | scripts/Dpkg/Source/Package.pm | 16 |
2 files changed, 10 insertions, 9 deletions
diff --git a/debian/changelog b/debian/changelog index 64b463182..8841b1cb2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -60,6 +60,9 @@ dpkg (1.20.0) UNRELEASED; urgency=medium - Dpkg::Deps::KnownFacts: Remove obsolete check_package() method. - Dpkg::Exit: Hide internal lowercase @handlers variable. - Dpkg::Gettext: Remove obsolete _g() function. + - Dpkg::Source::Package: Hide internal lowercase variable + @tar_ignore_default_pattern. Remove iternal lowercase variable alias + $diff_ignore_default_regexp. * Documentation: - man: Fix uncommon wording constructs. - man: Use a minus sign for a literal string. diff --git a/scripts/Dpkg/Source/Package.pm b/scripts/Dpkg/Source/Package.pm index 35bdbafa1..d973c5643 100644 --- a/scripts/Dpkg/Source/Package.pm +++ b/scripts/Dpkg/Source/Package.pm @@ -34,7 +34,7 @@ is the one that supports the extraction of the source package. use strict; use warnings; -our $VERSION = '1.04'; +our $VERSION = '2.00'; our @EXPORT_OK = qw( get_default_diff_ignore_regex set_default_diff_ignore_regex @@ -81,14 +81,8 @@ my $diff_ignore_default_regex = ' $diff_ignore_default_regex =~ s/^#.*$//mg; $diff_ignore_default_regex =~ s/\n//sg; -# Public variables -# XXX: Backwards compatibility, stop exporting on VERSION 2.00. -## no critic (Variables::ProhibitPackageVars) -our $diff_ignore_default_regexp; -*diff_ignore_default_regexp = \$diff_ignore_default_regex; - no warnings 'qw'; ## no critic (TestingAndDebugging::ProhibitNoWarnings) -our @tar_ignore_default_pattern = qw( +my @tar_ignore_default_pattern = qw( *.a *.la *.o @@ -660,10 +654,14 @@ sub write_dsc { =head1 CHANGES -=head2 Version 1.04 (dpkg 1.20.0) +=head2 Version 2.00 (dpkg 1.20.0) New method: check_original_tarball_signature(). +Remove variable: $diff_ignore_default_regexp. + +Hide variable: @tar_ignore_default_pattern. + =head2 Version 1.03 (dpkg 1.19.3) New option: format in new(). |