[elbe-devel] [PATCH] py3: enforce elbe to run with python2

Manuel Traut manut at linutronix.de
Tue Dec 19 11:34:11 CET 2017


The debhelper replaces the python2 interpreter in the 'elbe' script by python3.
elbe currently needs to run in python2, so this alters the interpreter
in the postinst step.

This needs to be removed if the transission to py3 is complete.

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 debian/python-elbe-bin.postinst | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 debian/python-elbe-bin.postinst

diff --git a/debian/python-elbe-bin.postinst b/debian/python-elbe-bin.postinst
new file mode 100644
index 00000000..897eeb40
--- /dev/null
+++ b/debian/python-elbe-bin.postinst
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e
+
+# force usage of python2 for the moment
+sed -i'' -e s#/usr/bin/python3#/usr/bin/python2#g /usr/bin/elbe
-- 
2.15.1




More information about the elbe-devel mailing list