aboutsummaryrefslogtreecommitdiff
path: root/common/hooks
diff options
context:
space:
mode:
authorPiotr Wójcik <chocimier@tlen.pl>2020-04-25 00:09:40 +0000
committerPiotr Wójcik <chocimier@tlen.pl>2020-04-25 00:10:01 +0000
commit5028523d433bd6d6f7ef75eb7e66e428d752351e (patch)
treedd2b57d67050f29b8fb160cc39924eea503b9ba5 /common/hooks
parentc780b513ad61fa6845c92f017836d5442d9ee42e (diff)
downloadvoid-packages-5028523d433bd6d6f7ef75eb7e66e428d752351e.tar
void-packages-5028523d433bd6d6f7ef75eb7e66e428d752351e.tar.gz
void-packages-5028523d433bd6d6f7ef75eb7e66e428d752351e.tar.bz2
void-packages-5028523d433bd6d6f7ef75eb7e66e428d752351e.tar.lz
void-packages-5028523d433bd6d6f7ef75eb7e66e428d752351e.tar.xz
void-packages-5028523d433bd6d6f7ef75eb7e66e428d752351e.tar.zst
void-packages-5028523d433bd6d6f7ef75eb7e66e428d752351e.zip
common/hooks: fix pycompile_module with explicit python_version=2
Diffstat (limited to 'common/hooks')
-rw-r--r--common/hooks/post-install/04-create-xbps-metadata-scripts.sh2
1 files changed, 2 insertions, 0 deletions
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