- gnupg-2.0.5
- gpg-agent not restarted after kde session crash/killed (#196327)
This commit is contained in:
parent
2f511137c1
commit
15e58a0b10
@ -1,5 +1,5 @@
|
||||
clog
|
||||
gnupg-2.0.2.tar.bz2
|
||||
gnupg-2.0.2.tar.bz2.sig
|
||||
gnupg-2.0.3.tar.bz2
|
||||
gnupg-2.0.3.tar.bz2.sig
|
||||
gnupg-2.0.4.tar.bz2
|
||||
gnupg-2.0.4.tar.bz2.sig
|
||||
gnupg-2.0.5.tar.bz2
|
||||
gnupg-2.0.5.tar.bz2.sig
|
||||
|
14
gnupg2.spec
14
gnupg2.spec
@ -9,7 +9,7 @@
|
||||
|
||||
Summary: Utility for secure communication and data storage
|
||||
Name: gnupg2
|
||||
Version: 2.0.3
|
||||
Version: 2.0.5
|
||||
Release: 1%{?dist}
|
||||
|
||||
License: GPL
|
||||
@ -25,13 +25,14 @@ Source11: gpg-agent-shutdown.sh
|
||||
|
||||
Patch1: gnupg-1.9.16-testverbose.patch
|
||||
|
||||
Obsoletes: newpg < 0.9.5
|
||||
# ancient, deprecated
|
||||
#Obsoletes: newpg < 0.9.5
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(postun): /sbin/install-info
|
||||
|
||||
BuildRequires: libassuan-static >= 1.0.1
|
||||
BuildRequires: libgcrypt-devel => 1.2.0
|
||||
BuildRequires: libgcrypt-devel => 1.2.2
|
||||
BuildRequires: libgpg-error-devel => 1.4
|
||||
BuildRequires: libksba-devel >= 1.0.0
|
||||
|
||||
@ -177,6 +178,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 06 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.5-1
|
||||
- gnupg-2.0.5
|
||||
- gpg-agent not restarted after kde session crash/killed (#196327)
|
||||
|
||||
* Fri May 18 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.4-1
|
||||
- gnupg-2.0.4
|
||||
|
||||
* Thu Mar 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 2.0.3-1
|
||||
- gnupg-2.0.3
|
||||
|
||||
|
@ -2,16 +2,23 @@
|
||||
|
||||
GPG_AGENT=/usr/bin/gpg-agent
|
||||
## Run gpg-agent only if not already running, and available
|
||||
if [ -z "${GPG_AGENT_INFO}" -a -x "${GPG_AGENT}" ] ; then
|
||||
if [ -x "${GPG_AGENT}" ] ; then
|
||||
|
||||
# check validity of GPG_SOCKET (in case of session crash)
|
||||
GPG_AGENT_INFO_FILE=${HOME}/.gpg-agent-info
|
||||
if [ -f "${GPG_AGENT_INFO_FILE}" ]; then
|
||||
GPG_SOCKET=$(cat "${GPG_AGENT_INFO_FILE}" | cut -f1 -d:)
|
||||
GPG_AGENT_PID=`cat ${GPG_AGENT_INFO_FILE} | cut -f2 -d:`
|
||||
GPG_PID_NAME=`ps -p ${GPG_AGENT_PID} -o comm=`
|
||||
if [ ! "x${GPG_PID_NAME}" = "xgpg-agent" ]; then
|
||||
rm -f "${GPG_AGENT_INFO_FILE}" 2>&1 >/dev/null
|
||||
else
|
||||
GPG_SOCKET=`cat "${GPG_AGENT_INFO_FILE}" | cut -f1 -d:`
|
||||
if ! test -S "${GPG_SOCKET}" -a -O "${GPG_SOCKET}" ; then
|
||||
rm -f "${GPG_AGENT_INFO_FILE}" 2>&1 >/dev/null
|
||||
fi
|
||||
fi
|
||||
unset GPG_AGENT_PID GPG_SOCKET GPG_PID_NAME
|
||||
fi
|
||||
|
||||
if [ -f "${GPG_AGENT_INFO_FILE}" ]; then
|
||||
export GPG_AGENT_INFO=$(cat "${GPG_AGENT_INFO_FILE}")
|
||||
|
Loading…
Reference in New Issue
Block a user