# HG changeset patch # User Denis Laxalde # Date 1571651339 -7200 # Node ID a882c088dc2ecd85893b7b257e0ced75719bbe7c # Parent 734407c4568a455604bf3430f2d717e6d7761a5f 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. diff -r 734407c4568a -r a882c088dc2e contrib/packaging/debian/rules --- a/contrib/packaging/debian/rules Mon Oct 21 11:32:54 2019 +0200 +++ b/contrib/packaging/debian/rules Mon Oct 21 11:48:59 2019 +0200 @@ -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: