changeset 44100:a882c088dc2e stable

packaging: use /usr/bin/python3 shebang for scripts in Debian "hg" script is already correct because it is handled by setup.py but "hg-ssh" will be rewritten by dh_python into "/usr/bin/python" which is not wanted as we target Python 3. By passing --shebang=/usr/bin/python3 to dh_python3, we force shebangs to be set with this value.
author Denis Laxalde <denis@laxalde.org>
date Mon, 21 Oct 2019 11:48:59 +0200
parents 734407c4568a
children 8676a8b2d20a
files contrib/packaging/debian/rules
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/packaging/debian/rules
+++ b/contrib/packaging/debian/rules
@@ -14,7 +14,7 @@
 	http_proxy='' dh_auto_test -- TESTFLAGS="-j$(CPUS)"
 
 override_dh_python3:
-	dh_python3
+	dh_python3 --shebang=/usr/bin/python3
 	find debian/mercurial/usr/share -type d -empty -delete
 
 override_dh_install: