[Python-modules-commits] r1061 - /packages/turbogears/trunk/debian/rules

kov at users.alioth.debian.org kov at users.alioth.debian.org
Sat Jun 24 21:57:01 UTC 2006


Author: kov
Date: Sat Jun 24 21:57:00 2006
New Revision: 1061

URL: http://svn.debian.org/wsvn/python-modules/?sc=1&rev=1061
Log:
- removed uneeded argument to python's setup
- made the code that replaces the hashbang of scripts more
  robust when checking the need for doing it

Modified:
    packages/turbogears/trunk/debian/rules

Modified: packages/turbogears/trunk/debian/rules
URL: http://svn.debian.org/wsvn/python-modules/packages/turbogears/trunk/debian/rules?rev=1061&op=diff
==============================================================================
--- packages/turbogears/trunk/debian/rules (original)
+++ packages/turbogears/trunk/debian/rules Sat Jun 24 21:57:00 2006
@@ -7,14 +7,14 @@
 include /usr/share/cdbs/1/class/python-distutils.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
-DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed  --install-lib usr/share/python-support/python-turbogears
+DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
 
-PYVER=$(shell pyversions -vr 'current')
+PYCURVER := $(shell pyversions -d | sed s,python,,g)
+VERSIONOK := $(shell dpkg --compare-versions ${PYCURVER} ge 2.4 ; echo $${?})
 
 binary-post-install/python-turbogears::
 	find debian/python-turbogears/usr/share/python-support/ -type f \
 		-exec chmod a-x {} \;
-	install -D -o root -g root -m 644 debian/python-support.version \
-		debian/python-turbogears/usr/share/python-support/python-turbogears/.version
-	test "${PYVER}" = "2.3" && \
-		sed -i 's,/usr/bin/python,/usr/bin/python2.4,g' debian/python-turbogears/usr/bin/tg-admin
+ifeq (1, ${VERSIONOK})
+	sed -i 's,/usr/bin/python,/usr/bin/python2.4,g' debian/python-turbogears/usr/bin/tg-admin
+endif




More information about the Python-modules-commits mailing list