[Python-modules-commits] [python-gnupg] 01/04: Override gpg1 using --quick-random

Elena Grandi valhalla-guest at moszumanska.debian.org
Wed Aug 17 18:02:58 UTC 2016


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

valhalla-guest pushed a commit to branch master
in repository python-gnupg.

commit 87feb05baf620dad5207e14091eacbc265d08093
Author: Elena Grandi <valhalla-d at trueelena.org>
Date:   Wed Aug 17 19:37:52 2016 +0200

    Override gpg1 using --quick-random
---
 debian/bin/{gpg => gpg1} | 2 +-
 debian/rules             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/bin/gpg b/debian/bin/gpg1
similarity index 69%
rename from debian/bin/gpg
rename to debian/bin/gpg1
index 54a92fd..9a41f14 100755
--- a/debian/bin/gpg
+++ b/debian/bin/gpg1
@@ -1,5 +1,5 @@
 #!/bin/sh
-GPG=`which -a gpg1 | uniq | head -n1`
+GPG=`which -a gpg1 | uniq | tail -n+2 | head -n1`
 if echo "$*" | grep -q gen-key; then
     exec "$GPG" --quick-random "$@"
 else
diff --git a/debian/rules b/debian/rules
index 51d77f9..d484d82 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ export PYBUILD_NAME=gnupg
 
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-	chmod 755 $(CURDIR)/debian/bin/gpg
+	chmod 755 $(CURDIR)/debian/bin/gpg1
 	set -ex; for py in $(shell pyversions -r -v); do \
 		PATH=$(CURDIR)/debian/bin:$$PATH PYTHONPATH=$(CURDIR)/build/lib.*-$$py python$$py test_gnupg.py ;\
 	done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-gnupg.git



More information about the Python-modules-commits mailing list