summaryrefslogtreecommitdiff
path: root/packaging/debian/rules
diff options
context:
space:
mode:
authorEvgeni Golov <egolov@redhat.com>2016-03-18 11:07:23 +0100
committerEvgeni Golov <egolov@redhat.com>2016-03-18 11:07:23 +0100
commit0cdbc8b48da32ad706f89ffb58d09a27b8dd8965 (patch)
tree2ef193a815bf0a6291fadd8bf394926f72b3deff /packaging/debian/rules
parentde2fe08d9f5db3509fa0f4c24c705f33f3a68340 (diff)
downloadansible-0cdbc8b48da32ad706f89ffb58d09a27b8dd8965.tar.gz
backwards compat for python-support on old Debian/Ubuntu releases
Diffstat (limited to 'packaging/debian/rules')
-rwxr-xr-xpackaging/debian/rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/debian/rules b/packaging/debian/rules
index f5894b7a43..3ebffe5c83 100755
--- a/packaging/debian/rules
+++ b/packaging/debian/rules
@@ -2,6 +2,9 @@
# -- makefile --
DEB_PYTHON2_MODULE_PACKAGES=ansible
+ifneq ($(shell dpkg-query -f '$${Version}' -W python-support 2>/dev/null),)
+DEB_PYTHON_SYSTEM=pysupport
+endif
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk