python: Ensure quick-random is used if gpg is gpg2
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 26 Jan 2017 09:44:02 +0000 (10:44 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 26 Jan 2017 09:44:02 +0000 (10:44 +0100)
* lang/python/tests/Makefile.am (gpg.conf): Configure
agent-program accordingly.

lang/python/tests/Makefile.am

index f9366dd..d7f2e58 100644 (file)
@@ -107,6 +107,8 @@ clean-local:
 ./gpg.conf:
 # This is required for t-sig-notations.
        echo no-force-v3-sigs > ./gpg.conf
+       echo ignore-invalid-option agent-program >> ./gpg.conf
+       echo "agent-program `which $(GPG_AGENT)`|--debug-quick-random" >> ./gpg.conf
 
 ./gpg-agent.conf:
 # This is required for gpg2, which does not support command fd.