[Pkg-gnupg-commit] [gpgme] 106/132: tests: Fix distcheck.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 26 01:01:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gpgme.

commit 392e51dd1181d035c19918222da65d08fdb2ee6d
Author: Justus Winter <justus at g10code.com>
Date:   Mon Mar 20 17:07:31 2017 +0100

    tests: Fix distcheck.
    
    * tests/start-stop-agent: Do not create 'gpg-agent.conf' if it does
    not exist.
    
    Fixes-commit: 16b202d9999591b71fb8bb49f6db10ef96d4cbe8
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 tests/start-stop-agent | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/start-stop-agent b/tests/start-stop-agent
index 457f70d..3ce6f22 100755
--- a/tests/start-stop-agent
+++ b/tests/start-stop-agent
@@ -42,7 +42,8 @@ echo "starting gpg-agent.." >&2
 # loopback entry to work.  Old versions do not understand this though,
 # so we need to be careful.
 if "$GPG_AGENT" --gpgconf-test --allow-loopback-pinentry &&
-   ! grep -q allow-loopback-pinentry "$GNUPGHOME/gpg-agent.conf"; then
+      test -f "$GNUPGHOME/gpg-agent.conf" &&
+      ! grep -q allow-loopback-pinentry "$GNUPGHOME/gpg-agent.conf"; then
     echo allow-loopback-pinentry >> "$GNUPGHOME/gpg-agent.conf"
 fi
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list