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=264b61081122c6724b27c93d3d6aadb99b112f1a

commit 264b61081122c6724b27c93d3d6aadb99b112f1a
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Jan 2 19:52:22 2025 +0100

    dpkg-gencontrol: Add missing field name to warning message
    
    This was causing a Perl undefined variable usage diagnostic.
    
    Fixes: commit 0d472ec1751fe6b2e14eab3e6c691fc14deb8d02
    Ref: #1091941
    Changelog: internal
---
 scripts/dpkg-gencontrol.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl
index 2ef2fc929..a339e8468 100755
--- a/scripts/dpkg-gencontrol.pl
+++ b/scripts/dpkg-gencontrol.pl
@@ -317,7 +317,7 @@ for my $f (qw(Section)) {
 
     $fields->{$f} = field_get_default_value($f);
     warning(g_('missing information for output field %s; ' .
-               'using default value "%s"'), $fields->{$f});
+               'using default value "%s"'), $f, $fields->{$f});
 }
 for my $f (qw(Priority)) {
     $fields->{$f} //= field_get_default_value($f);

-- 
Dpkg.Org's dpkg

Reply via email to