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

Torben Hohn torben.hohn at linutronix.de
Tue Dec 19 14:13:56 CET 2017


On Tue, Dec 19, 2017 at 11:34:11AM +0100, Manuel Traut wrote:
> 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>

ugly, but:

Reviewed-by: Torben Hohn <torben.hohn 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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Mit freundlichen Grüßen
Torben Hohn

Linutronix GmbH

Standort: Bremen

Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Firmensitz / Registered Office: D-88690 Uhldingen, Bahnhofstr. 3
Registergericht / Local District Court: Amtsgericht Freiburg i. Br.; HRB
Nr. / Trade register no.: 700 806

Geschäftsführer / Managing Directors: Heinz Egger, Thomas Gleixner

Eine Bitte von uns: Sollten Sie diese E-Mail irrtümlich erhalten haben,
benachrichtigen Sie uns in diesem Falle bitte sobald wie es Ihnen
möglich ist, durch Antwort-Mail. Vielen Dank!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20171219/1d9e73d6/attachment.sig>


More information about the elbe-devel mailing list