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=17309e15bbe78ac627cf6a66c318d1603b99c202

commit 17309e15bbe78ac627cf6a66c318d1603b99c202
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Dec 3 02:41:53 2024 +0100

    Dpkg::OpenPGP::Backend::Sequoia: Add keystore support
    
    Newer sq versions have keystore support, either through a keystore
    server, or if that is not running from their builtin in-process
    support. Which includes at least the native Sequoia keystore, and
    the GnuPG one via gpg-agent.
---
 scripts/Dpkg/OpenPGP/Backend/Sequoia.pm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/scripts/Dpkg/OpenPGP/Backend/Sequoia.pm 
b/scripts/Dpkg/OpenPGP/Backend/Sequoia.pm
index 82c64591c..280593cd9 100644
--- a/scripts/Dpkg/OpenPGP/Backend/Sequoia.pm
+++ b/scripts/Dpkg/OpenPGP/Backend/Sequoia.pm
@@ -45,6 +45,14 @@ sub DEFAULT_CMD {
     return [ qw(sq) ];
 }
 
+sub has_keystore {
+    my $self = shift;
+
+    return 1 if $ENV{HOME} && -e "$ENV{HOME}/.local/share/sequoia/keystore";
+    return 1 if $ENV{HOME} && -e "$ENV{HOME}/.gnupg";
+    return 0;
+}
+
 sub _sq_exec
 {
     my ($self, @exec) = @_;

-- 
Dpkg.Org's dpkg

Reply via email to