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=9cd5525a46fc5aeb42a23dc44cef2e66bb10b1d0 commit 9cd5525a46fc5aeb42a23dc44cef2e66bb10b1d0 Author: Guillem Jover <[email protected]> AuthorDate: Fri May 19 23:44:10 2023 +0200 dpkg-buildpackage: Handle missing information for hook substitutions When executing the preinit hook, there will be no information yet available about the package, as that's the whole point of that hook point. Initialize the substitution variables to an empty string to avoid perl warnings. --- scripts/dpkg-buildpackage.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl index 0fec511b5..bf43fb5cf 100755 --- a/scripts/dpkg-buildpackage.pl +++ b/scripts/dpkg-buildpackage.pl @@ -931,10 +931,10 @@ sub run_hook { my %hook_vars = ( '%' => '%', 'a' => $opts->{enabled} ? 1 : 0, - 'p' => $pkg, - 'v' => $version, - 's' => $sversion, - 'u' => $uversion, + 'p' => $pkg // q{}, + 'v' => $version // q{}, + 's' => $sversion // q{}, + 'u' => $uversion // q{}, ); my $subst_hook_var = sub { -- Dpkg.Org's dpkg

