diff options
| author | Guillem Jover <guillem@debian.org> | 2019-11-16 00:37:17 +0100 |
|---|---|---|
| committer | Guillem Jover <guillem@debian.org> | 2019-11-26 02:42:45 +0100 |
| commit | 69b98260c76342a72f3c819961a33b9a14e899ab (patch) | |
| tree | 7c4ef933575ab9065bba2dd17804fec982337574 /scripts/Dpkg | |
| parent | 2c08a8a2a2503398c7d17b4ecb7f364ea4eb3aed (diff) | |
| download | dpkg-69b98260c76342a72f3c819961a33b9a14e899ab.tar.gz | |
Dpkg::Version: Remove deprecation warning from semantic change in bool overload
Diffstat (limited to 'scripts/Dpkg')
| -rw-r--r-- | scripts/Dpkg/Version.pm | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/Dpkg/Version.pm b/scripts/Dpkg/Version.pm index 2900e5790..51d46c543 100644 --- a/scripts/Dpkg/Version.pm +++ b/scripts/Dpkg/Version.pm @@ -22,7 +22,7 @@ use strict; use warnings; use warnings::register qw(semantic_change::overload::bool); -our $VERSION = '1.02'; +our $VERSION = '1.03'; our @EXPORT = qw( version_compare version_compare_relation @@ -56,12 +56,7 @@ use overload '<=>' => \&_comparison, 'cmp' => \&_comparison, '""' => sub { return $_[0]->as_string(); }, - 'bool' => sub { - warnings::warnif('Dpkg::Version::semantic_change::overload::bool', - 'Dpkg::Version bool overload behavior has changed ' . - 'back to be an is_valid() alias'); - return $_[0]->is_valid(); - }, + 'bool' => sub { return $_[0]->is_valid(); }, 'fallback' => 1; =encoding utf8 @@ -473,6 +468,10 @@ sub version_check($) { =head1 CHANGES +=head2 Version 1.03 (dpkg 1.20.0) + +Remove deprecation warning from semantic change in 1.02. + =head2 Version 1.02 (dpkg 1.19.1) Semantic change: bool evaluation semantics restored to their original behavior. |
