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=01a8c8205ce4f0dd6f5576b9a8bdc4b7671423cd

commit 01a8c8205ce4f0dd6f5576b9a8bdc4b7671423cd
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Feb 16 11:37:35 2025 +0100

    Test::Dpkg: Handle missing cmdv definitions
    
    For SOP commands that currently do not have a matching cmdv, we removed
    their definition (which was set to "none"), but the code checking
    whether this was present on disk did not get updated.
    
    Fixes: commit 5a6f12663d04d5b688ff23088eecbd5767c74438
    Changelog: silent
---
 scripts/Test/Dpkg.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

-- 
Dpkg.Org's dpkg

Reply via email to