This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=301f5ec1a60e4fa6a0d69f2dd3f9c54285f0f798 The following commit(s) were added to refs/heads/master by this push: new 301f5ec1a Dpkg::Build::Info: Clarify by giving context to the deprecation warning 301f5ec1a is described below commit 301f5ec1a60e4fa6a0d69f2dd3f9c54285f0f798 (HEAD -> master) Author: Guillem Jover <[email protected]> AuthorDate: Sun Jun 28 12:29:12 2020 +0200 Dpkg::Build::Info: Clarify by giving context to the deprecation warning These built-in warnings provide no context, and in this particular case the warning message was a bit cryptic anyway. So we need to give it more context. In this case just fully qualifying the function name, and stating what is being deprecated, should be enough to give a hint of what is going on. Closes: #963844 Reported-by: Sven Joachim <[email protected]> --- debian/changelog | 3 +++ scripts/Dpkg/Build/Info.pm | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3335d7e35..85792bb8a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,9 @@ dpkg (1.20.3) UNRELEASED; urgency=medium * Perl modules: - Dpkg::OpenPGP: Pass --no-options to gpg in verify_signature(). Reported by Bertrand Marc <[email protected]>. Closes: #963839 + - Dpkg::Build::Info: Clarify by giving context to the + get_build_env_whitelist() deprecation warning. Closes: #963844 + Reported by Sven Joachim <[email protected]>. [ Updated programs translations ] * German (Sven Joachim). diff --git a/scripts/Dpkg/Build/Info.pm b/scripts/Dpkg/Build/Info.pm index 15ed8f942..3d221e476 100644 --- a/scripts/Dpkg/Build/Info.pm +++ b/scripts/Dpkg/Build/Info.pm @@ -89,7 +89,9 @@ This is a deprecated alias for get_build_env_allowed(). =cut sub get_build_env_whitelist { - warnings::warnif('deprecated', 'use get_build_env_allowed() instead'); + warnings::warnif('deprecated', + 'Dpkg::Build::Info::get_build_env_whitelist() is deprecated, ' . + 'use get_build_env_allowed() instead'); return get_build_env_allowed(); } -- Dpkg.Org's dpkg

