This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=d8613277252facbcab152de1ac94c7acc1053b98 commit d8613277252facbcab152de1ac94c7acc1053b98 Author: Guillem Jover <[email protected]> AuthorDate: Fri May 30 00:54:08 2025 +0200 Dpkg::Control::FieldsCore: Remove implicit argument use in field_transfer_single() This was deprecated in dpkg 1.22.12, where it started emitting deprecation warnings, and there are currently no known users of this implicit argument, so we can safely remove it now. --- scripts/Dpkg/Control/FieldsCore.pm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm index e3ebb80f0..5bb036c8e 100644 --- a/scripts/Dpkg/Control/FieldsCore.pm +++ b/scripts/Dpkg/Control/FieldsCore.pm @@ -28,7 +28,7 @@ CTRL_* constants exported by L<Dpkg::Control>. =cut -package Dpkg::Control::FieldsCore 1.03; +package Dpkg::Control::FieldsCore 1.04; use strict; use warnings; @@ -1122,12 +1122,6 @@ added to $to otherwise. sub field_transfer_single { my ($from, $to, $field) = @_; - if (not defined $field) { - warnings::warnif('deprecated', - 'using Dpkg::Control::Fields::field_transfer_single() with an ' . - 'an implicit field argument is deprecated'); - $field = $_; - } my ($from_type, $to_type) = ($from->get_type(), $to->get_type()); $field = field_capitalize($field); @@ -1392,6 +1386,10 @@ sub field_insert_before { =head1 CHANGES +=head2 Version 1.04 (dpkg 1.23.0) + +Remove argument: field_transfer_single() implicit argument usage. + =head2 Version 1.03 (dpkg 1.22.12) New function: field_get_default_value(). -- Dpkg.Org's dpkg

