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