summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-11-16 00:30:40 +0100
committerGuillem Jover <guillem@debian.org>2019-11-26 02:42:45 +0100
commit2adeecad3d72ccfb46ed39278c6b1831d8dbad64 (patch)
tree3e01b945868f22be0ef535e1c89ebb2ef045ba21
parent7a68fdc76ea3a009ace005aa7972bb337995b127 (diff)
downloaddpkg-2adeecad3d72ccfb46ed39278c6b1831d8dbad64.tar.gz
Dpkg::Exit: Hide internal lowercase @handlers variable
Bump module version to 2.00.
-rw-r--r--debian/changelog1
-rw-r--r--scripts/Dpkg/Exit.pm11
2 files changed, 7 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index bef7ecc95..60865b3b8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -58,6 +58,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium
$default_compression, $default_compression_level and
$compression_re_file_ext.
- Dpkg::Deps::KnownFacts: Remove obsolete check_package() method.
+ - Dpkg::Exit: Hide internal lowercase @handlers variable.
* Documentation:
- man: Fix uncommon wording constructs.
- man: Use a minus sign for a literal string.
diff --git a/scripts/Dpkg/Exit.pm b/scripts/Dpkg/Exit.pm
index 5e513b496..fb51a3abf 100644
--- a/scripts/Dpkg/Exit.pm
+++ b/scripts/Dpkg/Exit.pm
@@ -19,7 +19,7 @@ package Dpkg::Exit;
use strict;
use warnings;
-our $VERSION = '1.01';
+our $VERSION = '2.00';
our @EXPORT_OK = qw(
push_exit_handler
pop_exit_handler
@@ -28,10 +28,7 @@ our @EXPORT_OK = qw(
use Exporter qw(import);
-# XXX: Backwards compatibility, stop exporting on VERSION 2.00.
-## no critic (Variables::ProhibitPackageVars)
-our @handlers = ();
-## use critic
+my @handlers = ();
=encoding utf8
@@ -91,6 +88,10 @@ $SIG{QUIT} = \&_exit_handler;
=head1 CHANGES
+=head2 Version 2.00 (dpkg 1.20.0)
+
+Hide variable: @handlers.
+
=head2 Version 1.01 (dpkg 1.17.2)
New functions: push_exit_handler(), pop_exit_handler(), run_exit_handlers()