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=f1533b552a14d60be1e02ec978c385f278e8b434

commit f1533b552a14d60be1e02ec978c385f278e8b434
Author: Guillem Jover <[email protected]>
AuthorDate: Mon Mar 31 15:35:11 2025 +0000

    Test::Dpkg: Fix OpenPGP backend commands detection
    
    We were not properly checking the backends as they could end up being
    undefined and thus the checks would fail, thus not testing all the
    expected combinations.
---
 scripts/Test/Dpkg.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/Test/Dpkg.pm b/scripts/Test/Dpkg.pm
index 2b7098f8b..19c1706dd 100644
--- a/scripts/Test/Dpkg.pm
+++ b/scripts/Test/Dpkg.pm
@@ -243,11 +243,11 @@ sub test_needs_openpgp_backend
     my @have_backends;
     foreach my $backend (@openpgp_backends) {
         my $name = $backend->{backend};
-        my $cmd = $backend->{cmd};
-        my $cmdv = $backend->{cmdv};
+        my $cmd = $backend->{cmd} // q();
+        my $cmdv = $backend->{cmdv} // q();
 
         my $have_cmd = $cmd eq 'none' ? 0 : can_run($cmd);
-        my $have_cmdv = $cmdv // q() eq 'none' ? 0 : can_run($cmdv);
+        my $have_cmdv = $cmdv eq 'none' ? 0 : can_run($cmdv);
 
         next unless ($have_cmd || $have_cmdv);
 

-- 
Dpkg.Org's dpkg

Reply via email to