From 424e979d8a2e10edd215b055c3fcbf89369e4c4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= <slavek.banko@axis.cz>
Date: Wed, 4 Sep 2013 18:05:28 +0200
Subject: Switch remaining packages to dh_python2 on Debian and Ubuntu

---
 .../wheezy/applications/fusion-icon/debian/python-distutils-custom.mk  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'debian/wheezy/applications/fusion-icon')

diff --git a/debian/wheezy/applications/fusion-icon/debian/python-distutils-custom.mk b/debian/wheezy/applications/fusion-icon/debian/python-distutils-custom.mk
index 00f1a3b1b..fbc70a624 100644
--- a/debian/wheezy/applications/fusion-icon/debian/python-distutils-custom.mk
+++ b/debian/wheezy/applications/fusion-icon/debian/python-distutils-custom.mk
@@ -141,9 +141,10 @@ $(patsubst %,install/%,$(DEB_PYTHON_SIMPLE_PACKAGES)) :: install/% :
 ifdef _cdbs_rules_debhelper
 
 DEB_DH_PYTHON_ARGS = $(addprefix -V ,$(DEB_PYTHON_COMPILE_VERSION)) $(DEB_DH_PYTHON_ARGS_ALL) $(DEB_DH_PYTHON_ARGS_$(cdbs_curpkg))
+DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_python)
 
 $(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
-	dh_python -p$(cdbs_curpkg) $(DEB_DH_PYTHON_ARGS)
+	${DH_PYTHON2} -p$(cdbs_curpkg) $(DEB_DH_PYTHON_ARGS)
 endif
 
 
-- 
cgit v1.2.1