scl-utils/0001-Make-the-python3-be-the-default-choice.patch

33 lines
1.0 KiB
Diff
Raw Normal View History

From 2fd4caf035c1883ae1fd9574f26dcf3fc12dc79b Mon Sep 17 00:00:00 2001
From: Honza Horak <hhorak@redhat.com>
Date: Fri, 23 Jul 2021 08:32:12 +0200
Subject: [PATCH] Make the python3 be the default choice
This default is likely never used but since it is there, let's make it valid.
scl-utils 2.x are included only in RHEL-8, so it is likely safe to expect
python3 being available everywhere where 2.x version of scl-utils is
used.
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1984598
---
rpm/brp-scl-python-bytecompile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rpm/brp-scl-python-bytecompile b/rpm/brp-scl-python-bytecompile
index ef00064..c91b952 100755
--- a/rpm/brp-scl-python-bytecompile
+++ b/rpm/brp-scl-python-bytecompile
@@ -10,7 +10,7 @@ fi
[ "0$scl_path" = "0" ] && exit 0
# If we don't have a python interpreter, avoid changing anything.
-default_python=${1:-/usr/bin/python}
+default_python=${1:-/usr/bin/python3}
if [ ! -x "$default_python" ]; then
exit 0
fi
--
2.26.3