rules: Modify python scripts to use python2.

This commit is contained in:
Timo Aaltonen committed 2018-04-07 00:41:25 +03:00
1 parent f046b83d62
commit e4a86ba31d
2 files changed
+6

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ freeipa (4.7.0~pre1+git20180404-1) UNRELEASED; urgency=medium
* enable-mod-nss-during-setup.diff: Dropped, not needed anymore.
* server.postinst/postrm: Enable/disable mod_ssl.
* control: Bump 389-ds-base dependency.
* rules: Modify python scripts to use python2.
-- Timo Aaltonen <tjaalton@debian.org> Fri, 06 Apr 2018 16:18:42 +0300
+5
View File
@@ -87,6 +87,11 @@ endif
# remove files which are useful only for make uninstall
find $(CURDIR)/debian/tmp -wholename '*/dist-packages/*/install_files.txt' -exec rm '{}' \;
# we still need to use python2
find debian/tmp ! -name '*.pyc' -a ! -name '*.pyo' -a \
-type f -exec grep -qsm1 '^#!.*\bpython' {} \; \
-exec sed -i -e '1 s|^#!.*\bpython[^ ]*|#!/usr/bin/python|' {} \;
override_dh_missing:
dh_missing --fail-missing