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=2d4d2f8e3ad4aeb9758774745b70f28b46c9f57f

commit 2d4d2f8e3ad4aeb9758774745b70f28b46c9f57f
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Aug 31 19:40:17 2024 +0200

    Dpkg::BuildDriver::DebianRules: Handle missing root_cmd option
    
    Initialize the root_cmd option as an empty list if it did not get passed
    into the constructor.
---
 scripts/Dpkg/BuildDriver/DebianRules.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Dpkg/BuildDriver/DebianRules.pm 
b/scripts/Dpkg/BuildDriver/DebianRules.pm
index ffc198796..a037f774a 100644
--- a/scripts/Dpkg/BuildDriver/DebianRules.pm
+++ b/scripts/Dpkg/BuildDriver/DebianRules.pm
@@ -58,7 +58,7 @@ sub new {
 
     my $self = {
         ctrl => $opts{ctrl},
-        root_cmd => $opts{root_cmd},
+        root_cmd => $opts{root_cmd} // [],
         as_root => $opts{as_root},
         debian_rules => $opts{debian_rules},
         rrr_override => $opts{rrr_override},

-- 
Dpkg.Org's dpkg

Reply via email to