From 57759c415099a81a2d25ce2de6fecadb07513f67 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:52 +0200 Subject: Adding debian version 1.2.2-2. Signed-off-by: Daniel Baumann --- debian/patches/python3.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/patches/python3.patch (limited to 'debian/patches/python3.patch') diff --git a/debian/patches/python3.patch b/debian/patches/python3.patch new file mode 100644 index 0000000..f445d08 --- /dev/null +++ b/debian/patches/python3.patch @@ -0,0 +1,23 @@ +Description: Don't consider `python` a valid python[23]? interpreter. + Just to be safe, don't even try to look it up. + Should be safe to drop the patch once python2 is not around anymore. +Author: Mattia Rizzolo +Forwarded: not-needed +Last-Update: 2020-05-07 + +--- a/src/extension/implementation/script.cpp ++++ b/src/extension/implementation/script.cpp +@@ -86,9 +86,11 @@ + { "python", {"python-interpreter", {"python3" }}}, + #else + { "perl", {"perl-interpreter", {"perl" }}}, +- { "python", {"python-interpreter", {"python3", "python" }}}, ++ /* don't consider `python` a valid python(3) interpreter */ ++ { "python", {"python-interpreter", {"python3" }}}, + #endif +- { "python2", {"python2-interpreter", {"python2", "python" }}}, ++ /* don't consider `python` a valid python(2) interpreter either */ ++ { "python2", {"python2-interpreter", {"python2" }}}, + { "ruby", {"ruby-interpreter", {"ruby" }}}, + { "shell", {"shell-interpreter", {"sh" }}}, + // clang-format on -- cgit v1.2.3