From e3192fb3a4a259535c0ae2a21ee2f74b3cb66faf Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 19 Feb 2018 11:24:53 +0000 Subject: [PATCH] Use pycrypto backend, rather than python-cryptography, on Ubuntu Precise --- packaging/debian/rules | 3 +++ 1 file changed, 3 insertions(+) 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