]> git.pld-linux.org Git - packages/gnupg2.git/commitdiff
- handle seahorse-agent, too
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 1 Aug 2016 15:25:57 +0000 (17:25 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 18 Oct 2016 20:22:21 +0000 (22:22 +0200)
gnupg-agent.sh
gnupg2.spec

index 68ec6f4260cd5d4607e35638f15a02e709bd2229..100ad8b0d5a202eccdaa1b5a190d52ba4ba0357d 100644 (file)
@@ -14,7 +14,8 @@ fi
 if grep -q "^[[:blank:]]*use-agent" ${CFG} 2>/dev/null; then
        if [ -f "${HOME}/.gnupg/GPG_AGENT_INFO" ] && \
                        pid="$(cut -d: -f2 $HOME/.gnupg/GPG_AGENT_INFO)" && \
-                       [ "$(resolvesymlink "/proc/$pid/exe")" = "/usr/bin/gpg-agent" ]; then
+                       agent="$(resolvesymlink "/proc/$pid/exe")" && \
+                       [ "$agent" = "/usr/bin/gpg-agent" -o "$agent" = "/usr/bin/seahorse-agent" ]; then
                export GPG_AGENT_INFO="$(cat ${HOME}/.gnupg/GPG_AGENT_INFO)"
        else
                if [ "$seahorse" = "no" ]; then
@@ -26,5 +27,7 @@ if grep -q "^[[:blank:]]*use-agent" ${CFG} 2>/dev/null; then
                export GPG_AGENT_INFO
        fi
 fi
+unset agent
+unset seahorse
 unset CFG
 unset pid
index 75b3a8d223090a43909e80dea817d90a8a9a7dff..555b6042db1f7023f77892c95397bc8dccd9c2b5 100644 (file)
@@ -7,7 +7,7 @@ Summary:        GNU Privacy Guard - tool for secure communication and data storage - en
 Summary(pl.UTF-8):     GnuPG - narzędzie do bezpiecznej komunikacji i bezpiecznego przechowywania danych - wersja rozszerzona
 Name:          gnupg2
 Version:       2.0.30
-Release:       1
+Release:       2
 License:       GPL v3+
 Group:         Applications/File
 Source0:       ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-%{version}.tar.bz2
This page took 0.243647 seconds and 4 git commands to generate.