From 5028523d433bd6d6f7ef75eb7e66e428d752351e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Sat, 25 Apr 2020 02:09:40 +0200 Subject: [PATCH] common/hooks: fix pycompile_module with explicit python_version=2 --- common/hooks/post-install/04-create-xbps-metadata-scripts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh index 0d9797469b2..182388febfe 100644 --- a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh +++ b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh @@ -272,6 +272,8 @@ _EOF if [ "$pycompile_version" = 3 ]; then pycompile_version=${py3_ver} + elif [ "$pycompile_version" = 2 ]; then + pycompile_version=${py2_ver} fi if [ -n "${pycompile_dirs}" -o -n "${pycompile_module}" ]; then