Package: fabric Version: 1.3.2-5 Severity: normal Tags: patch --- Please enter the report below this line. --- '/usr/bin/fab' script generated by setuptool's 'entry_points' feature is not working correctly inside Python virtualenv, because of hardcoded shebang line to '/usr/bin/python'. Attached patch is changing it to '/usr/bin/env python' before packaging.
--- System information. --- Architecture: i386 Kernel: Linux 3.2.0-2-686-pae Debian Release: wheezy/sid 500 testing security.debian.org 500 testing qgis.org 500 testing ftp.cz.debian.org --- Package information. --- Depends (Version) | Installed ======================================-+-============== python2.6 | 2.6.7-4 OR python2.7 | 2.7.3~rc2-2.1 python (>= 2.6.6-7~) | 2.7.3~rc2-1 python (<< 2.8) | 2.7.3~rc2-1 python-paramiko (>= 1.6) | 1.7.7.1-2 python-pkg-resources | 0.6.24-1 python-nose | 1.1.2-3 Package's Recommends field is empty. Suggests (Version) | Installed ===========================-+-=========== libjs-jquery | 1.7.2+debian-2
commit a44f2ed63a086a968ccfb1f7db4e3584fc2eb260 Author: Ivan Mincik <ivan.min...@gmail.com> Date: Sat Jun 30 15:45:52 2012 +0200 dev diff --git a/debian/rules b/debian/rules index c672d8a..7de459a 100755 --- a/debian/rules +++ b/debian/rules @@ -21,3 +21,6 @@ override_dh_installchangelogs: override_dh_compress: dh_compress -X.js -X.txt + +override_dh_installdeb: + sed -i 's/\/usr\/bin\/python/\/usr\/bin\/env python/' debian/fabric/usr/bin/fab