summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorGrant Slater <grant.slater@wearefriday.com>2018-02-19 11:24:53 +0000
committerToshio Kuratomi <a.badger@gmail.com>2018-02-19 13:39:32 -0800
commite3192fb3a4a259535c0ae2a21ee2f74b3cb66faf (patch)
tree68af900bd803345991cc75897d6558fb65c48179 /packaging
parentedaeb69a35e4ff8326c41546e72ca1bd0ecb808b (diff)
downloadansible-e3192fb3a4a259535c0ae2a21ee2f74b3cb66faf.tar.gz
Use pycrypto backend, rather than python-cryptography, on Ubuntu Precise
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/debian/rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/debian/rules b/packaging/debian/rules
index 130451a1ea..792a74b664 100755
--- a/packaging/debian/rules
+++ b/packaging/debian/rules
@@ -6,6 +6,9 @@ DEB_PYTHON2_MODULE_PACKAGES=ansible
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
+ifeq ($(shell lsb_release -cs), precise)
+ export ANSIBLE_CRYPTO_BACKEND = pycrypto
+endif
ifeq ($(shell lsb_release -cs), trusty)
export ANSIBLE_CRYPTO_BACKEND = pycrypto
endif